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

    Access dialog outside module

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 537 Views
    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.
    • H Offline
      Helper
      last edited by

      On 15/02/2018 at 04:08, xxxxxxxx wrote:

      Hi everyone,

      I'm trying to access a dialog's static text value from a different module.
      Is there a specific way inside Cinema to do this please?
      Or do you just have to import the module that contains the dialog creation and access the class?

      Apologies if it sounds like a dumb question.

      Thank you in advance! 🙂

      Andre

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 20/02/2018 at 05:15, xxxxxxxx wrote:

        Hi Andre,

        sorry for having you wait so long. My fault!

        I think, you want to look into SpecialEventAdd(). The events posted by this function will be received in Cinema 4D's main thread, either in GeDialog.CoreMessage() or MessageData.CoreMessage().
        This can be used to establish a communication between different modules, even though the amount of data such an event can carry is a bit limited. So it will rather be a notification that new data may be consumed from a predefined place, rather than actually transmitting the data.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 21/02/2018 at 01:13, xxxxxxxx wrote:

          Hi Andreas,

          Don't worry at all! I'm sure you're a busy guy! 🙂

          Thank you very much for your help. Will give it a try.

          Have a great day!

          Andre

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