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

    How do I get a poly point's position in worldspace

    PYTHON Development
    0
    5
    660
    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.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 30/04/2011 at 21:22, xxxxxxxx wrote:

      I know how to use GetPoint() to get a polygon point's position in its local space, but how can I get it (or convert it) in worldspace? In other words, no matter what an object's parent is doing or its scale, I need the position of an individual polygon point in the world coordinate system. Thanks!

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/05/2011 at 03:36, xxxxxxxx wrote:

        Hi, multiply the objects global matrix with the point position.

        Cheers, Sebastian

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 01/05/2011 at 03:41, xxxxxxxx wrote:

          def GetAbsPoint(op,id) :  
            """  
            Returns the absolute position of a point 'id' of 'op'.  
            'op' must be a pointobject.  
            """  
            return    op.GetMg()*op.GetPoint(id)  
            
          print GetAbsPoint(op,0)
          

          Cheers, Niklas

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 01/05/2011 at 13:16, xxxxxxxx wrote:

            Thanks so much! I'm going to try this later today --

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 01/05/2011 at 23:20, xxxxxxxx wrote:

              This works perfectly, of course. I'm thankful you posted it, it would have taken me a long time to work this out.

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