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
    • Recent
    • Tags
    • Users
    • Login

    Execute code on GeDialog close?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 296 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 28/05/2014 at 10:04, xxxxxxxx wrote:

      Hi there.  I'm trying to write out preferences for a window, every time it is closed.  I'm making a class that inherits from c4d.gui.GeDialog, and I know that there are pre-specified function names defined, such as "CreateLayout", and "Command"...  Is there something similar (Or perhaps an ID number I can have "Command" catch?  I tried making a function named "Close", thinking that might be run when the window was closed, but no such luck.  Would anyone know of a way to execute code every time the window is closed?

      Also, is there a page that lists all of these special, pre-defined functions that get executed?  Thanks!

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

        On 30/05/2014 at 10:58, xxxxxxxx wrote:

        In case anyone else is wondering, you can use AskClose:

        http://code.vonc.fr/c4d/python/help/modules/c4d.gui/GeDialog/index.html#GeDialog.AskClose

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

          On 30/05/2014 at 14:47, xxxxxxxx wrote:

          Or DestroyWindow()

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