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

    How can I get the Inexclude date changed when drag or use straw?

    Cinema 4D SDK
    windows python 2024
    2
    3
    563
    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.
    • DunhouD
      Dunhou
      last edited by

      Hi community,

      I create a InExcludeData GUI ,but I cann't find the msg of the drop event, can we get the data change when we drop a object or use the straw tool?

      • get a drag object data in first Gadget
      • get object who select by the straw of the newt Gadget

      a39500b9-2605-4bda-93d4-bf8c081b4e54-image.png

      Cheers~
      DunHou

      https://boghma.com
      https://github.com/DunHouGo

      i_mazlovI 1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov @Dunhou
        last edited by

        Hi DunHou,

        Your question would have been making more sense with the code snippet showing the context.

        Assuming that you're operating in the GeDialog rather than in the Description, you can make use of GeDialog.Command(), which catches the user clicks on the gadget (you'd need to check for the id of your InExclude gadget). At this point you can access the InExclude object via msg[c4d.BFM_ACTION_VALUE].

        Unfortunatelly, there's no built-in event that gives you the list of objects, so you need to keep track of what has been changed after user's interaction yourself.

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

        DunhouD 1 Reply Last reply Reply Quote 0
        • DunhouD
          Dunhou @i_mazlov
          last edited by

          Thanks @i_mazlov ,

          The msg[c4d.BFM_ACTION_VALUE] is all I want, Thanks for that.

          Cheers~
          DunHou

          https://boghma.com
          https://github.com/DunHouGo

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