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

    Reacting on Treeview user action

    Cinema 4D SDK
    r21 r20 python
    1
    2
    297
    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.
    • P
      pim
      last edited by

      I have a dialog with a Treeview.
      In the Treeview I can detect when a object is selected or right clicked.

          def ContextMenuCall(self, root, userdata, obj, lColumn, lCommand):
              if lCommand == ID_SHOWTHUMBNAILS:
                  # Update dialog according to obj
                  return True
              return False
      

      However, in the main dialog I want to react to this right clicking.
      How do I 'notify' the main dialog?
      I tried sending a message() or SendParentMessage(), but that did not work.

      1 Reply Last reply Reply Quote 0
      • P
        pim
        last edited by

        I found a reply here.
        https://developers.maxon.net/forum/topic/11447/get-message-from-treeview-gui-dialog/2

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