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

    Limit the destination of UserArea.HandleMouseDrag()

    Cinema 4D SDK
    2023 python
    3
    4
    734
    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.
    • K
      kng_ito
      last edited by

      Hi,

      I am drawing an object as a node in UserArea and I want to drag that object only to the InExclude list (Attribute Manager).
      The problem is that when I use HandleMouseDrag(), I can also drag to the Object Manager and that object will be duplicated unintentionally.
      So I need to know how to restrict dragging to the object manager and only allow dragging to the Attribute Manager.

      Any help would be appreciated.

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

        Hello @kng_ito ,

        Thank you for reaching out to us. As announced here, Maxon is currently conducting a company meeting. Please understand that our capability to answer questions is therefore limited at the moment.

        You should share here code, as we are otherwise only guessing what you are doing. I am not quite sure what is meant with 'I am drawing an object as a node in UserArea', but I assume you are implementing some kind of UserArea and want to start a DRAGTYPE_ATOMARRAY event for one or many BaseList2D associated with your UserArea.

        It is not possible to 'forbid' entities to consume a drag event when they implement that event. E.g., you cannot prevent the Object Manager from accepting a BaseObject being dragged into it.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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

          Hello @kng_ito,

          without further questions or postings, we will consider this topic as solved by Monday 05/06/2023 and flag it accordingly.

          Thank you for your understanding,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          K 1 Reply Last reply Reply Quote 0
          • K
            kng_ito @m_adam
            last edited by

            Hi @m_adam,

            Sorry for the delay in responding.
            Yes, the problem has been resolved.

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