Skip to main content
Inspiring
May 19, 2025
Question

Show default slider

  • May 19, 2025
  • 1 reply
  • 296 views

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?


1 reply

Community Expert
May 20, 2025

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,

Rewind_Author
Inspiring
May 20, 2025

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);




Community Expert
May 24, 2025

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)