Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    About BaseView.WC()

    Cinema 4D SDK
    python
    3
    4
    535
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chuanzhenC
      chuanzhen
      last edited by chuanzhen

      my python plugins(draw some point in spline) work in R21 and R22 have different result in viewport
      te.png

      in Right/Top/Front view use code

      bd.SetMatrix_Camera()
      offset = c4d.Vector(0.0,0.0,-100000.0)
      new_point = bd.WC(test_pointone) + offset
      s = bd.WC(test_pointone) + offset
      e = bd.WCtest_pointtwo) + offset
      

      so i change code for R22

      bd.SetMatrix_Camera()
      offset = c4d.Vector(0.0,0.0,-100000.0)
      in_v = c4d.Vector(1.0,-1.0,1.0)
      new_point = (bd.WC(test_pointone) + offset) ^ in_v
      s = (bd.WC(test_pointone) + offset) ^ in_v
      e = (bd.WCtest_pointtwo) + offset) ^ in_v
      

      R22 Change Something?
      Thanks for any help!

      相信我,可以的!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        I can indeed confirm the issue, I've filled a bug report and inform development team to know if its really a bug or the new viewport expecting other results (even if I think, it shouldn't matter since you are in screen space, SetMatrix_Camera should see the matrix correctly).

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • K
          kikizg
          last edited by

          It seems that BaseDraw.GetViewMatrix is changed in R22 as well. It always returns ident matrix.

          Regards,
          Kristian

          M 1 Reply Last reply Reply Quote 0
          • M
            m_adam @kikizg
            last edited by

            @kikizg Yes we are aware of it and it's already reported.

            Thanks for you feedback, if you find other weird stuff, please post them.
            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • First post
              Last post