Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
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
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
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