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

    open DLG_TYPE_ASYNC always with default size

    PYTHON Development
    0
    4
    582
    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
      Helper
      last edited by

      On 12/11/2014 at 03:40, xxxxxxxx wrote:

      Hi 🙂

      in my plugin, I have:

      self.dialog.Open(c4d.DLG_TYPE_ASYNC, PLUGIN_ID, defaultw=200, defaulth=50)

      if in Cinema 4D I modify the size  with drag and close the plugin, if I restart the plugin, the size are the last dragged size...

      they are not:  defaultw=200, defaulth=50

      Is possible, restart always the plugin with default size?

      Thanks

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

        On 12/11/2014 at 07:28, xxxxxxxx wrote:

        Nope. And it's annoying.

        I did discover a "trick" to re-set the window a while back by quickly changing your layout to another one. Then back again.
        Unfortunately, The layouts are not very well supported in the SDKs. We can't even get the current layout. So there's no way to get back to your original layout after switching to a different one temporarily.

        Niklas said he might know of a way to handle that issue with some kind of hack.
        But Maxon wouldn't let him tell us.

        -ScottA

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

          On 12/11/2014 at 07:51, xxxxxxxx wrote:

          Hello,

          There is no direct way to edit the size of an asynchronous dialog. A feature of asynchronous dialogs is that you can add them to your layout like the Attribute Manager or the Object Manager. When you change the layout, Cinema will resize the dialog accordingly. In such a situation (when the dialog is actually a panel) resizing the dialog would not make sense.

          best wishes,
          Sebastian

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

            On 12/11/2014 at 14:20, xxxxxxxx wrote:

            ^There are times when you would like to re-set it back to it's default size.
            It would be nice to have an option to re-set the window's size back to it's coded values.

            -ScottA

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