Gear Settings Icon Workflow
-
I have a question that conceptually I don't know the best practices for doing and I was having trouble locating anything in the SDK about it.
Cinema has the concept of the gear icon which let's you open a little dialog for commands to change something that you maybe would only do occassionally. This is visible in a variety of areas such as the Mesh>Add>Subdivide for instance.
Is there any information about best practices for doing something like this? I am sorry this is a bit vague. Is it just a matter of having the script/command plugin, and then a second script/command plugin for the the settings dialog that maybe writes something that the first script references when running? Or is there some proper way to write a command with the setting icon option? I feel like there has to be some way, because if I were to do it as two separate scripts/plugins, they'd have two different entries, in the Extensions menu, right? Which is not what is desired.
-
Nevermind. I am an idiot. I did manage to find some of what I was looking for.
For future reference in case anyone is as blind as I am, when you are doing a commandData plugin, when registering your plugin, you need to set c4d.PLUGINFLAG_COMMAND_OPTION_DIALOG in the info flag, and that will make it have the icon. Then I can go do some searching to sort the rest of it out.
-
Hi @BretBays Happy Christmas ! Thanks for getting back, and indeed
PLUGINFLAG_COMMAND_OPTION_DIALOG
is the way to go. Find an example in CommandData with Options Dialog - Docked command buttonCheers,
Maxime.