Skip to main content
Known Participant
March 8, 2022
Answered

About slider parameters

  • March 8, 2022
  • 1 reply
  • 533 views

Hi, question about parameters.

The documentation for AE SDK states that:

PF_Param_SLIDER: No longer used.

PF_Param_FIX_SLIDER: Deprecated.We now recommend PF_Param_FLOAT_SLIDERs.

So i guess we should use the PF_Param_FLOAT_SLIDERs.

However, it s impossible to make them work as a PF_Param_SLIDER/PF_Param_FIX_SLIDER to input integers. Even with precision 0, clicking on the parameter will show hidden decimals, and the click + slide the mouse is moving floating value in the back and it takes ages to change from on number to the other.

So i wonder if i m still supposed to use only PF_Param_FLOAT_SLIDERs, or which of PF_Param_SLIDER and PF_Param_FIX_SLIDER is recommended to use.

Thanks in advance

 

 

This topic has been closed for replies.
Correct answer shachar carmi

no i dont have any issues with them.  i still use them. but since i see the work deprecated and obsolete... i thought i had to move to something else before it s removed somedays (i m just in the process of renewing our base tools and libraries to create AE effects).


to be honest, i also don't see a reason why not to use PF_Param_SLIDER. i don't see these slider's getting dropped completely from the API any time soon...

1 reply

Community Expert
March 8, 2022

as far as i know, there's currently no way to force a solder to integers only.

you could implement param supervision that will force an integer value when changed... but that won't stop keyframe interpolation from creating fractions.

i too have the need for some "integer only" sliders, but for my purposes setting the precision to 0 and rounding the actual value is good enough.

Known Participant
March 9, 2022

the PF_Param_SLIDER just do integer sliders that though.

James Whiffin
Legend
March 9, 2022

I still sometimes use the PF_Param_SLIDER if I want to force an int. AFAIK they still work, have you had issues with it?