Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Show default slider

Community Beginner ,
May 19, 2025 May 19, 2025

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?
TWIRLY.png

TOPICS
SDK
143
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2025 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,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 20, 2025 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);




Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2025 May 24, 2025
LATEST

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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines