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.

    GUI/Plugin type suggestions?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 242 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 25/03/2014 at 02:20, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R14 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi all,
      I'm working on a new plugin, and I'm not quite sure what type of plugin to derive it from.

      I want the plugin to behave like a command plugin, i.e., a button or menu entry that allows the user to execute a certain operation with a single click. The catch is that there are some parameters that I would like the user to be able to change. As far as I understand, there is no way to attach a GUI to a command plugin. The typical use case for my plugin is as follows:

      1. The user sets some parameters.
      2. The user executes a command several times, based on these parameters.
      3. Possibly, the parameters are changed and the process is repeated.

      One idea I have is to store the parameters in the container of a special object that the user can add to the scene. A command plugin could then find (the first instance of) this object, and read the parameters.

      Do you have any other suggestions? Are there any other tools in c4d that operate in a similar way?

      Thanks
      /Filip

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

        On 25/03/2014 at 02:57, xxxxxxxx wrote:

        You can use a dialog and do it like the Axis Center command. The actual Axis Centering can then
        be executed via a Button click. There is also the PLUGINFLAG_COMMAND_OPTION_DIALOG flag
        when registering the command plugin which gives the user the option to either execute the
        command right away or open an option dialog first.

        Best,
        -Niklas

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

          On 25/03/2014 at 03:09, xxxxxxxx wrote:

          Thanks Niklas,
          The second idea (PLUGINFLAG_COMMAND_OPTION_DIALOG) seems to fit my needs perfectly!

          Best
          /Filip

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