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

    menu.InsData(, 'CMD') does not work on Tags?

    Scheduled Pinned Locked Moved Cinema 4D SDK
    r21python
    4 Posts 2 Posters 538 Views 1 Watching
    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.
    • B Offline
      bentraje
      last edited by

      Hi,

      In the c4d.gui.ShowPopupDialog documentation. It offers menu.InsData(c4d.Ocube, "CMD") to add a cube. It works.

      I tried modifying it to menu.InsData(c4d.Tphong, "CMD") but the phong icon does not appear like the cube icon above.

      Does this mean the menu.InsData referred in the documentation works only on objects and not tags?

      Thank you for looking at my problem

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

        Hello,

        When you create a nodedata, it automatically create a command for you.
        The phong tag doesn't have any command attached ot it.
        The RigidBody does have one.

        You can see on windows->customization->customaze commands all the command that does exist.

        so it works if the command does exist.

        I still got to check how the menu is build when you right click on a object in the object manager.
        I'll be back if i got more information about that.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

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

          Hello again,

          internaly it's using something like this.

          menu.InsData(IDM_MENU2, 'Phong&i5612&')
          

          As i said, no command attached to it, you have to react to the menu and create yourself the phong tag.

          Cheers,
          Manuel

          MAXON SDK Specialist

          MAXON Registered Developer

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

            hello,
            without more information from your part, i'll close this thread

            Cheers,
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

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