GUI/Plugin type suggestions?
On 25/03/2014 at 02:20, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
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:
- The user sets some parameters.
- The user executes a command several times, based on these parameters.
- 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?
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.
On 25/03/2014 at 03:09, xxxxxxxx wrote:
The second idea (PLUGINFLAG_COMMAND_OPTION_DIALOG) seems to fit my needs perfectly!