Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    Reading a clone's Global Position in python

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 307 Views
    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 Offline
      Helper
      last edited by

      On 18/09/2015 at 03:31, xxxxxxxx wrote:

      Hello! Can anybody point me in the right direction for this one...

      I know for a standard object in C4D it is possible to read an object's global position using .GetMg().off ,
      but how to read a clone's global's position?

      Mograph's marr.off returns a clone's position relative to the cloner object it's self if I'm not mistaken?

      I'd like to know where a clone is in global/world space!

      Any help would be much appreciated! Thanks in advance!

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

        On 20/09/2015 at 15:22, xxxxxxxx wrote:

        Hi
        You can multiply the Cloners Matrix with the clone's Matrix.
        Had to read up on this myself actually 🙂
        https://developers.maxon.net/docs/py/2023_2/misc/matrixfundamental.html?highlight=matrix
        (Paragraph 4 in particular)

        -b

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

          On 20/09/2015 at 15:36, xxxxxxxx wrote:

          Interesting! Thank you Bonsak, I'll give this a go tomorrow! Thank you for your help! This will be a workflow changer for me if I can figure it out 😉

          Thanks again!

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