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

    Is there any plans to supprot DRAGTYPE_COMMAND in the future?

    General Talk
    chit-chat
    3
    5
    1.0k
    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.
    • gheyretG
      gheyret
      last edited by

      Hi Community!
      I see that drag and drop in the Tree View and GeUserArea in the Python SDK does not currently support Command and the Command Palette.
      I wonder if the future will support it?
      901a8dfc-5d48-4aeb-9a4f-1a08dc1559b8-image.png

      www.boghma.com

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

        Hello @gheyret,

        Thank you for reaching out to us. @m_adam, our Python dev is on vacation, and only he can answer this with certainty.

        I can tell you that we had no immediate plans to do this. The second question would be then probably if we would want to do this. And for the classic API, when there are these obvious gaps in the Python API (compare with C++ below), then there was usually a reason why they left that gap there and that reason was often void pointers.

        8819b371-cfc3-45d5-aa25-3c64e4f1a4f5-image.png

        There are harmless cases of DRAGTYPE_COMMAND where you only get the ID of the incoming command and then just CallCommand that ID, as for example shown in our C++ examples. The problem is that DRAGTYPE_COMMAND can be accompanied by a void pointer in its drag data, i.e., arbitrary binary data where the recipient then has to cast them into their right form. You cannot port that to Python because in Python there is no such thing as casting. This might be a reason why this has not been ported to Python.

        We could of course just ignore the data field in a DragAndDrop instance when porting this to Python, but that could make the whole event pointless. In the end only Maxime can give here a definitive answer, but for now it is, "no, we do not have any plans".

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        gheyretG 1 Reply Last reply Reply Quote 0
        • gheyretG
          gheyret @ferdinand
          last edited by

          Hi @ferdinand
          I've seen it in a "Not Supported" state for years, so I came to ask you.
          As a third party developer, I would love to be able to do more, but like you said, a lot of things may have to be abandoned for a while because of Python limitations.
          Anyway, thank you for your friendly reply as usual.

          www.boghma.com

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi I've added DRAGTYPE_COMMAND in my backlog (no promise on when it will happen, since this is a pretty low priority feature).
            DRAGTYPE_CMDPALETTE will remain as it is, since it's mostly used internally, and even in C++ you can't really use it.

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            gheyretG 1 Reply Last reply Reply Quote 0
            • gheyretG
              gheyret @m_adam
              last edited by

              Hi @m_adam
              It's nice to hear that, and thank you!

              www.boghma.com

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