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

    How to find the CallCommand id for Redshift 'Convert and Replace with Nodes'

    Cinema 4D SDK
    c++ r25 sdk
    4
    6
    921
    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.
    • kbarK
      kbar
      last edited by kbar

      I am trying to figure out the id for the command "Convert and Replace with Nodes'.

      This can be found from the Redshift menu here:

      48021710-609a-46b4-8312-558acc00db0e-image.png

      But if you look for this in the Command Manager it can not be found. But the one above it 'Convert to Nodes' can be found.

      If you undock that panel it ends up looking like the following image, notice how 'Convert and Replace with Nodes' is now gone.

      8a26952d-bcf1-4086-ad59-22bde4beebb6-image.png

      The 'Convert and Replace with Nodes' only appears if you hold down your mouse on the 'Convert to Nodes' entry.

      2d921f3e-4cfa-4e6c-bc3a-79054ef6ad0f-image.png

      What is this menu? How can we located the id for this 'special' menu entry? What does it mean when you have to hold down your mouse on a button and this popup appears? Is this something new in R25 onwards? I don't recall ever seeing something like this before.

      https://www.gamelogicdesign.com
      https://www.plugins4d.com

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        Hi,

        you cannot or just guess it. This command is a subid command. The default subid have the ID 1000, the other one 1001.
        (This is very hardcoded and could have been 10000 and 10001).

        # Call the convert to Nodes command
        c4d.CallCommand(1040226, 1000)
        
        # Call the Convert and Replace with Nodes
        c4d.CallCommand(1040226, 1001)
        

        Neither ids are exposed.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • lasselauchL
          lasselauch
          last edited by

          AFK currently, but I think you can open the "Script Log..." from the Extensions Menu to check the ID's right!?

          kbarK 1 Reply Last reply Reply Quote 1
          • ManuelM
            Manuel
            last edited by

            good point, and with that you can see that the ID i gave is not the right one.

            The command ID is 1040225

            MAXON SDK Specialist

            MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • kbarK
              kbar @lasselauch
              last edited by

              @lasselauch said in How to find the CallCommand id for Redshift 'Convert and Replace with Nodes':

              AFK currently, but I think you can open the "Script Log..." from the Extensions Menu to check the ID's right!?

              Wow. Can't believe I have never seen this before. I have been digging through the command manager for years like a cave man.

              https://www.gamelogicdesign.com
              https://www.plugins4d.com

              1 Reply Last reply Reply Quote 1
              • ferdinandF
                ferdinand
                last edited by ferdinand

                Hey @everyone,

                Yes, the Script Log can be quite handy, especially in cases like these where no symbols do exist. But one should also keep in mind that integer identifiers can sometimes change, and we do not publish such information then. It is therefore best to use the symbols when they exist, as doing so will avoid that problem.

                Cheers,
                Ferdinand

                MAXON SDK Specialist
                developers.maxon.net

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