Cycle Button
-
On 02/07/2018 at 08:46, xxxxxxxx wrote:
Hello Plugincafe.
I'm trying to create a presets drop-down menu in my deformer plugin using Cycle Button drop-down.
I can't find any information in the docs.I already made a drop-down menu with integer values.
LONG TESTPLUGIN_PRESETS {CYCLE {TESTPLUGIN_PRESET1; TESTPLUGIN_PRESET2; TESTPLUGIN_PRESET3;} FIT_H;}
but this is not exactly what I want. I need to make these values clickable, like in Cycle Button menu.
-
On 03/07/2018 at 01:42, xxxxxxxx wrote:
Hello,
a cycle button is just another custom GUI for that LONG parameter. It is called "CYCLEBUTTON".
You find an example in the tcaconstraint.res resource file:
LONG ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDBUTTON { CUSTOMGUI CYCLEBUTTON; FIT_H; SCALE_H; CYCLE { ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDOPTIMIZED; ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDALL; } }
best wishes,
Sebastian