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 and Drop Gradient Data onto a Gradient

    Cinema 4D SDK
    c++ r20 r21 r23 s22 s24 sdk
    3
    5
    744
    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 ferdinand

      Note that I have asked this question before but I got no answer. So I am asking again to try to get a clear answer.

      What data do I need to pass into GeUserArea::HandleMouseDrag so that I can allow dragging and dropping my own gradients onto a Gradient?

      I have a list of GradientKnots. I want to allow dragging and dropping of this data into a Gradient.

      What should the DRAGTYPE be? And what should the data be?

      Thanks,
      Kent

      edit: The mentioned previous topic [ added by @ferdinand ]

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

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

        Hi,

        the dragtype must be DRAGTYPE_BROWSER but the data type must be SDKBrowserDragInfo and cannot be created. Internally it's built from BrowserDragInfo that is not public and cast to SDKBrowserDragInfo .

        the passed object is cast to SDKBrowserDragInfo in the HandleDragReceivePreset function.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

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

          @m_magalhaes so what your saying is there is absolutely no way for a developer to create a drag drop event at all for gradients.

          I would like to formally request a way to allow us to drop a Gradient, or list of GradientKnots, onto a Gradient in the UI.

          DRAGTYPE_GRADIENT

          Cheers,
          Kent

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

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

            Hi,

            i forgot to answer/confirm that yes, there's no way.

            Cheers,
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

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

              Hello @kbar,

              without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly.

              Thank you for your understanding,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

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