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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Move Null Object but not Children

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 337 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 02/02/2013 at 01:04, xxxxxxxx wrote:

      Hi 😄

      with python, Is possible in hierarchy, move only the Null Object (Axis? ) retaining fixed everything else?

      Before:

      After

      Thanks 🙂

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

        On 02/02/2013 at 02:01, xxxxxxxx wrote:

        Hi Caleidos4D,

        you can move all children of the object about a certain anmount, and then move the axis of the NULL
        about this anmount in negative direction.

        Do this for the first level objects only, not recursively.

        for all direct children O of Null:  
            O.position += offset  
        endfor  
        Null.position -= offset
        

        -Niklas

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

          On 02/02/2013 at 09:53, xxxxxxxx wrote:

          Thanks Niklas 👍 🍺🍺

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