Copy link to clipboard
Copied
I’ve set the PF_OutFlag2_PARAM_GROUP_START_COLLAPSED_FLAG flag
In ParamsSetup I add the PF_ParamFlag_COLLAPSE_TWIRLY flag to my parameter
AEFX_CLR_STRUCT(def);
def.flags = PF_ParamFlag_COLLAPSE_TWIRLY;
PF_ADD_FLOAT_SLIDERX(
STR(StrID_Gain_Param_Name),
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_DFLT,
PF_Precision_HUNDREDTHS,
0,
0,
GAIN_DISK_ID
);
However when I apply the plugin to a layer my parameter is collapsed and does not display the slider What am I doing wrong?
Copy link to clipboard
Copied
i think that belongs in def.ui_flags instead.
alas, the macro will override any pre-defined values, so OR the values together in the macro like so:
PF_Precision_HUNDREDTHS | PF_ParamFlag_COLLAPSE_TWIRLY,
Copy link to clipboard
Copied
It didn't work for me, maybe I didn't understand
AEFX_CLR_STRUCT(def);
def.ui_flags = PF_ParamFlag_COLLAPSE_TWIRLY;
PF_ADD_FLOAT_SLIDERX( STR(StrID_Gain_Param_Name),
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_DFLT,
PF_Precision_HUNDREDTHS,
0,
0,
GAIN_DISK_ID);
PF_ParamFlag_COLLAPSE_TWIRLY produces an error when I manually expand the slider
AEFX_CLR_STRUCT(def);
PF_ADD_FLOAT_SLIDERX( STR(StrID_Gain_Param_Name),
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_MIN,
SKELETON_GAIN_MAX,
SKELETON_GAIN_DFLT,
PF_Precision_HUNDREDTHS | PF_ParamFlag_COLLAPSE_TWIRLY,
0,
0,
GAIN_DISK_ID);
Copy link to clipboard
Copied
ah. you need to use PF_ParamFlag_START_COLLAPSED instead of PF_ParamFlag_COLLAPSE_TWIRLY. (the latter is a dynamic flag to be used only during UPDATE_PARAMS_UI)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now