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

    Global Position with local offset [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 476 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 23/02/2015 at 02:58, xxxxxxxx wrote:

      Hey

      I can`t get the solution - i try to get a global position with a offset witch is for the local position.

      My try was that - can someone give me a tip - how to calc this ?

      Many Thanks

      fixposm = fixture[1].GetMg()
      fixposoffset = c4d.utils.MatrixMove(offsetvec)
      fixposm -= fixposoffset
      fixpos = fixposm.off
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 24/02/2015 at 07:55, xxxxxxxx wrote:

        Hi conner,

        I'd like to help you, but I'd need more information.  Can you please elaborate about your problem and the solution you're seeking?

        Joey Gaspe
        SDK Support Engineer

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

          On 24/02/2015 at 15:56, xxxxxxxx wrote:

          hey Joey,

          thanks for your reply

          I write a function to export all position of objects to a list. To get the position I take the global position and need to calculate the position with an individual offset - which can be define in the object.

          i cant add the offset to the global position - its a relativ position offset.

          what is the right way to get the offset to the global position

          hope . this ist understandable 
          many thanks

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

            On 04/03/2015 at 07:46, xxxxxxxx wrote:

            Hi conner,

            Sorry for the delayed response.  I'm still not totally sure what you're asking, but if I did understand, I can propose the following:  Have you considered using null objects?  What you can do is create a null object, set its position, and have your objects as children of the null object, with their own positions that will be relative to the null object's.

            If I translate your terms the way I understand them, the null object would contain the global position, and each object under it (the null object can have multiple children objects) will have the offset.  That way, you can keep these values separate, and the null object won't display as anything but a dot in the viewport and otherwise shouldn't interfere.

            I hope that helps!

            Joey Gaspe
            SDK Support Engineer

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

              On 11/03/2015 at 09:24, xxxxxxxx wrote:

              I'll assume since it's been over a week without a response that this thread is to be closed as solved.

              Joey Gaspe
              SDK Support Engineer

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