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

    Get Message from TreeView gui dialog

    Cinema 4D SDK
    python
    2
    2
    613
    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.
    • mikeudinM
      mikeudin
      last edited by

      I'm writing Command Data plug-in and have a TreeView custom gui element where user can drop some things to create elements tree.
      Now i need to send, for example, Tree items count to main GeDialog window each time when user interacts with TreeView.
      How i can make it?
      I was found this tread, where using SendParentMessage, but it's not working with TreeView.

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Hello,

        SendParentMessage() is a member function of GeUserArea. It is only relevant if you create a custom GUI element based on GeUserArea.

        A class based on TreeViewFunctions is used to define the behaviour of a TreeViewGUI. It is not based on GeUserArea.

        In TreeViewFunctions, you could inform the host GeDialog about an event by sending a custom core message using SpecialEventAdd(). The GeDialog can catch this message with CoreMessage(). If you want to send data, one way is to store the data in a global variable which is then accessed by the dialog.

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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