Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions whole number slider

  • Dan Ebberts

    November 13, 2012 at 3:30 am

    Which number are you concerned about, the slider value or the time remapping value? I’m wondering if maybe you expected the time remapping value to be in frames instead of seconds.

    Dan

  • Ben Wolfinsohn

    November 13, 2012 at 4:24 am

    just wanted the slider value to be, but I guess I can just ignore the the decimal place, and just look at the whole number and it works fine. 2.01 or 2.93 gives me the same results. so i’ll just ignore the other to digits and all is good.

  • Ian Johnston

    March 31, 2023 at 6:18 pm

    Hi Dan,

    I’m in the same boat. I’m animating a character but to keep the slider controls on whole numbers specifically helps when keying frames and overall cleaner. If you scrub a slider after being applied, it adds decimals by default. The slider is parented to a composition that has multiple layers nested within it. Each layer is only visible for 1 frame. As you scrub through the composition a character’s facial expression only appears for just that frame. Now when you time remap that composition, you first delete the last keyframe in the time remap. Then you can pick whip the time remap (via expression) to a slider. Now when you scrub the slider, your comp should display various facial expressions depending on the numeric value of your slider. However, there are no decimals in the comp. There’s no need to show 2.76 in the slider. When it’s rigged, if I hand this file off to another animator, it’s confusing. If the slider only has whole integers then it’s very clear what facial expression is being displayed. However, I don’t know how to show whole numbers in the slider. Does this make more sense? Thank you for your help figuring this out… 🙂

  • Dan Ebberts

    April 1, 2023 at 7:07 pm

    You could add an expression like this to the slider:

    Math.floor(value)

    It will still show 2 decimal places, but they’ll always be 0.

    Other than that, you could create your own pseudo effect slider and set precision to 0, which would eliminate the decimal places. A bit of work, but I think it would give you exactly what you want.

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy