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

    Switching of Multi Object Working Axis for Move Tools

    Cinema 4D SDK
    python 2024
    2
    3
    491
    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.
    • chuanzhenC
      chuanzhen
      last edited by

      Hi,
      For Move tools(or rotation tool or scale toll), when multiple objects are selected, the axis of the tool can be switched by clicking on it. Can this be achieved through a Python script to switch to the axis of a certain object instead of manually selecting it

      move tool.gif

      Thanks for any help!

      相信我,可以的!

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @chuanzhen
        last edited by

        Hello @chuanzhen,

        Thank you for reaching out to us. An axis as a directly manipulatable entity does not exist in the API. Objects have coordinate systems which are reflected as axis to users. We have talked many times about this subject on the forum, for example here. There is also the Python code example operation_transfer_axis_s26.py which I once added to cover this very common question.

        But to give here a short answer: No, there is no API feature which would allow you to snap the axis of one object to another. You must do that manually as for example shown in operation_transfer_axis_s26.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC
          chuanzhen @ferdinand
          last edited by

          @ferdinand Thanks for reply. Perhaps not expressed clearly. For changing the axis of an object, it is not a problem. What I want to ask is whether the manual operation step of selecting the axis before the Move tool works can be implemented using a script.

          相信我,可以的!

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