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

    Confused about Async Dialog

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 306 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 18/06/2011 at 09:23, xxxxxxxx wrote:

      Yea, I know, I ask much about Async Dialogs. 😂
      But now, I am pretty pretty confused.

      I'm currently writing DescEdit and when I open my Dialog asynchronious, it DOES stays opened. Even it is **not ** an attribute of my CommandData !
      This is it:

      class OpenDescEdit(CommandData) :  
        iconPath    = join(dirname(__file__), "src", "icon.tif")  
        
        # Initialise Icon  
        icon        = BaseBitmap()  
        icon.InitWith(iconPath)  
        
        id          = 100000121    # not registered at Plugincafe.com  
        
        def Execute(self, doc) :  
            dlg     = ContainerDialog()  
            dlg.Open()  
        
            return True  
        
        @classmethod  
        def Register(cls) :  
            data    = {  
                "id":       cls.id,  
                "str":      "Description Editor",  
                "info":     c4d.PLUGINFLAG_COMMAND_HOTKEY,  
                "icon":     cls.icon,  
                "help":     "An Editor to create Descriptionfiles for C++ and Python Plugins.",  
                "dat":      cls(),  
            }  
        
            RegisterCommandPlugin( **data )
      

      I don't want to provide more source code.

      I have subclassed a Subclass of GeDialog for the ContainerDialog. May this be theReason ?

      - GeDialog  
        - RootDialogWithListView  
        - ContainerDialog
      

      It does also stay open when I am importing the DescEdit source into the Scriptmanager and Open the Dialog there, asynchronious.

      Thanks,
      Niklas

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