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

    Recent tools list

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 446 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 08/05/2015 at 14:53, xxxxxxxx wrote:

      Hello,

      is there a way to read the list of recently used tools from the document?

      The only thing I found in the documentation was the active tool and it´s data:
      BaseDocument.GetAction()
      BaseDocument.GetActiveToolData()

      Best wishes
      Martin

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

        On 11/05/2015 at 09:37, xxxxxxxx wrote:

        Hello,

        sorry, but the list of recently used tools cannot be accessed through the APIs.

        Best wishes,
        Sebastian

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

          On 11/05/2015 at 12:48, xxxxxxxx wrote:

          Hello Sebastian,

          I thought about switching back to the last used tool after my tool has finished.
          Like the render region tool does it.
          But within the init tool function call I find no way to read out the type of the last used tool.

          Any chance to find out which was at least the last tool?

          Thanks in advance.
          Martin

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

            On 12/05/2015 at 01:46, xxxxxxxx wrote:

            Hello,

            I'm afraid there is no way to access that information.

            In the C++ SDK you could create a SceneHookData plugin and listen for the MSG_DOCUMENTINFO_TYPE_TOOL_CHANGED message. This way you could store all information about the tools used.

            Best wishes,
            Sebastian

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

              On 12/05/2015 at 02:08, xxxxxxxx wrote:

              Hello Sebastian,

              Thanks for the information !
              For the python programmers I find out this one today:
              A little cumbersome, but I overcome the difficulty by using a command plugin that stores
              the actual tool id in global variable and fires up my new tool which has a hidden flag(info= c4d.PLUGINFLAG_HIDE).
              If my tool is finished I used doc.SetAction() with the global value to switch back to the previous tool.

              Hope this is an acceptable approach.

              Best wishes
              Martin

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