Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slider Control values

  • Slider Control values

    Posted by Matthias Gottung on May 29, 2006 at 4:00 pm

    Hey Everyone,

    I have another Problem, this time it’s regarding expressions and slider controls.
    I want to move objects from right to left and the slider should work like an multiplication value

    So if I move the slider from 1 to 2 the movement should be 2 times faster

    I used this line and it worked at first.
    [time*thisComp.layer(“Control”).effect(“Layer”)(“Slider”),340]

    the problem is when I set keyframes for this everything works fine for the time between 2 keyframes
    after the keyframes the movement is slower then it should be

    After checking through the values I came up with an idea what the problem might be.

    The keyframes of the slider only submit relative information instead of the absolute values.

    For example if I would set 2 Keyframes, with the values 0 and 50 at 0 and 50 frames
    After Effects would submit:

    frame 1=1 frame 2=2 frame 3=3 and at frame 51=0

    Because After effects has reached the “value” of 50 at frame 50 and is no longer sending information

    But if after effects would send:

    frame 1=”Slider value” frame 2=”Slider Value” …

    then the speed wouldn’t go down after the last keyframe because the slider would still send information.

    Ok that was as clear as I can formulate my problem.
    I could send my project file via e-mail if it could help

    with kind regards

    Matthias Gottung replied 19 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mylenium

    May 29, 2006 at 4:25 pm

    Nope, your logic is wrong. The behavior is just fine. You are forgetting that by animating your sliders in sync with time your are creating an exponential function, not a linear multiplication. Once you stop changing the values, the exponential behavior will become more and more linear. A simpler and more efficient function would be

    Math.pow(time,2)

    without any sliders (assuming you want to double your values every second).

    Mylenium

    [Pour Myl

  • Matthias Gottung

    June 2, 2006 at 1:14 pm

    Hey Mylenium,

    Well, I didn’t what to use an exponential function. I just wanted to multiplicate the time value
    with the value that was controlled with the slider.

    Sorry for the delay
    Mogamblin

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