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
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Support custom layout with dialogPlugin

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 525 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 17/06/2015 at 05:57, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R16 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      I'm currently working on a commandData/dialog plugin.
      I want to support creating layouts with my plugin in the layouts.
      How should I go about this?

      If I dock my plugin, save the layout and then load it again, my dialog is still showing, but only the docking icon, nothing else from my GUI.
      If I then execute the plugin again, another dialog comes up, which isn't what I want.

      Should it be inside my main.cpp file inside PluginMessage inside C4DPL_BUILDMENU?
      If so, how should I implement something like this?

      Thanks in advance for your help and time!
      Greetings,
      Casimir Smets

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

        On 17/06/2015 at 06:57, xxxxxxxx wrote:

        Hello,

        to support reloading layouts you must implement RestoreLayout(). You find an example on GitHub.

        Best wishes,
        Sebastian

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

          On 17/06/2015 at 06:58, xxxxxxxx wrote:

          Hi,

          Thanks for your answer!
          I will definately look into that!

          Greetings,
          Casimir Smets

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

            On 18/06/2015 at 01:20, xxxxxxxx wrote:

            Hi Sebastian,

            Well, that was easy! 😄
            Is there also a way to first look if there is still an instance of the plugin, and if so, load the instance?

            Thanks for your answer!!!
            With kind regards,
            Casimir Smets

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

              On 18/06/2015 at 05:19, xxxxxxxx wrote:

              Hello,

              I'm not exactly sure what you mean. Your CommandData plugin should own your dialog so of course you should be able to check if an instance of your dialog exists.

              Best wishes,
              Sebastian

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

                On 25/06/2015 at 06:48, xxxxxxxx wrote:

                Hi Sebastian!

                I meant that, if the user loads his layout with the plugin in it, then loads another layout, and loads the first layout again, it should use the instance that is still active (the values shouldn't be resetting).
                How should I go about this?

                Thanks for your help and time!
                Greetings,
                Casimir Smets

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