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

    How to close a dialog box by event

    Cinema 4D SDK
    python
    2
    3
    578
    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.
    • V
      visualride
      last edited by

      I want to display what the document name that I am currently processing with my plugin. Can I use a gui.MessageDialog, or is there a better way? If I do use a gui.MessageDialog, how do I close it automatically when I move on to process the next document?

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

        Hi @visualride, it's actually not possible to control the close state of a MessageDialog. The only possible way is to create your own Dialog through a GeDialog and control it with GeDialog::Open GeDialog::Close

        Moreover, with a GeDialog, you can define a Timer, so after a given time you can decide to close your Dialog.

        You can find an example in our GitHub repository Py-MemoryViewer.pyp.

        If you have any question, please let me know.
        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • V
          visualride
          last edited by

          That should work. Thanks for the clarification and pointer to the example!

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