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
    • Register
    • Login

    Object Position Problems

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 352 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

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

      On 11/01/2005 at 04:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------Hi,
      I worte a function to get all my Objects which are under other Objects into the first level. If I do this by hand in c4d there is no problem, but if i do this by coffee the objects will be moved to an other point in the scene.

      Can someone  please tell me how to find a workaround or an other way to do this?

      My function looks like this:
      xyz(op,doc,parent){
      while(op){
      if(op->GetDown){
      op=op->GetDown
      xyz(op,doc,parent)
      op->Remove()
      op->InsertUnder(parent)
      }
      }

      Greetings from Freiburg(Germany)
      Tim

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

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

        On 11/01/2005 at 05:25, xxxxxxxx wrote:

        Hi,

        at first glance it seems when you put op under your parent the fist time, the list will go down from op downward. Set up a temporary pointer (storing op->GetUp() before you remove it) that you can pass to your xyz function, so it can correctly go down in the hierarchy.

        HTH

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

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

          On 11/01/2005 at 06:02, xxxxxxxx wrote:

          Hi Katachi,
          first thank you for your answer!
          that is not my problem, my problem ist that the Information of the Gobal Matrix gets lost when the Object is moved up.

          Greetings Tim

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

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

            On 11/01/2005 at 06:11, xxxxxxxx wrote:

            ? then get the global matrix once again. Where´s the problem? What do you actually want to do?

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

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

              On 11/01/2005 at 06:21, xxxxxxxx wrote:

              The problem is that i`m really a newbee.. 🙂

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

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

                On 11/01/2005 at 06:27, xxxxxxxx wrote:

                Thanks @ Katachi
                , for lifting up my eyes! 🙂

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