Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling size of a shape layer using slider and expressions.

  • Controlling size of a shape layer using slider and expressions.

    Posted by Mervin James on October 29, 2016 at 2:01 am

    Hi everyone im fairly new to AE and im trying to get this sorted if anyone can provide any help.

    Basically I have two keyframes on the scale property of a shape layer. The first keyframe is at 0% and the second is at 15%. Id like to control the second keyframe
    using a slider. Can anyone point me in thr right direction please. Thanks

    Mervin James replied 9 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Saadman Mahdi

    October 30, 2016 at 1:11 pm

    Hey, I am no expression expert, but i think this should work out well for what you are trying to do.

    1) Add 3 slider controls to your shape layer.
    call them,

    (i) Slider Control
    (ii) Start
    (iii) End

    Then paste attached code into the scale property.

    Animate key frames for the “Slider Control” effect from 0 to 100.

    These will be your starting(0) and ending(100) key frames.

    The value of control “Start” is the scale at the beginning which i assume you want to be 0, “End” is the value for ending scale which you can change as you please.

    slider = effect("Slider Control")("Slider");
    linear(slider,0,100,[effect("Start")("Slider"),effect("Start")("Slider")],[effect("End")("Slider"),effect("End")("Slider")]);

  • Mervin James

    November 1, 2016 at 5:41 pm

    Thanks for your replay but I actually got some help off another forum concerning this issue.

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