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

    Save width and height of Dialog

    Cinema 4D SDK
    2
    2
    390
    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.
    • pyxelriggerP
      pyxelrigger
      last edited by pyxelrigger

      return self.dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC, pluginid=PLUGIN_ID, xpos=-2, ypos=-2, defaultw=760, defaulth=450)
      

      does anyone know if it is possible every time I open my layout, it has the same "defaultw" and "defaulth" ?

      because as a default when I change manually and after opening it again, the change you make is saved

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi @pyxelrigger thanks for reaching out us.

        With regard to your question, I'm a bit confused cause you mentioned having your layout opened every time with a default width and height (regardless of the values stored in the layout) whilst, on the contrary, you pasted a method belonging to GeDialog::Open().

        Question: is a dialog or a layout to open every time with a default width and height?

        Cheers, R

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