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

    Drag object attributes on tag

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 556 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 21/07/2017 at 08:38, xxxxxxxx wrote:

      I'm trying to create a tag plugin that changes an object's parameter based on parameters of another object.
      The user should decide which parameters should be linked by dragging those into the python tag like overriding a texture tag with a new texture.

      Is there a way to enable drag&drop for tag plugins and how would you access the attributes in python code?

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

        On 22/07/2017 at 09:40, xxxxxxxx wrote:

        I guess you have everything needed in this topic.
        https://developers.maxon.net/forum/topic/371/13503_drag-parameter-to-user-data-field-like-in-console

        If not feel free to ask.

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

          On 22/07/2017 at 13:09, xxxxxxxx wrote:

          That's not quite what I'm looking for. 
          I want to recreate what Greyscalegorilla did to their Signal plugin where you can drag and drop a parameter on the tag which then is able to modify the parameter. When I drag an attribute on a python tag for example I don't be able to move the parameter on the tag.

          This is how it look if I drag a parameter on a "normal" tag:
          https://drive.google.com/open?id=0B_fI3gEuo7teYWN4ZXJ1b19MSXc

          And this how it looks with a Signal tag:
          https://drive.google.com/open?id=0B_fI3gEuo7teSVVvZHFSYUU1V0k

          How do I achieve it without creating a multi line String interface?

          I browsed the whole internet for a solution but did not find any suitable for this case.

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

            On 24/07/2017 at 02:39, xxxxxxxx wrote:

            Hi,

            this is currently a limitation in Python. Sorry.
            In C++ you can use MSG_DRAGANDDROP, there's a code example in the NodeData Manual, but this message is not yet available in the Python SDK.

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