Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Slider controling Slider Expression

  • Slider controling Slider Expression

    Posted by James Ronan on November 24, 2015 at 3:41 pm

    Hey guys.

    I have a slider attached to ObjectA animating it’s Y scale – This works fine.

    I also have a slider on seperate Null layer.

    What I then want is to have the slider on the Null layer control the overall % of the slider on ObjectA without messing up the keyframes it has.

    E.g:

    If ObjectA slider is at 300.

    A Null Layer slider is at 50

    The scale of ObjectA will be 150

    Any help much appreciated.

    I’ve been looking into the linear expression which I feel is close but I cant work it out.

    J

    James Ronan replied 10 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • John Cuevas

    November 24, 2015 at 4:57 pm

    if it’s for scale, you could do it like this:

    x = thisLayer.scale[0];
    y = effect("Slider Control")("Slider");
    yFinal = y * (thisComp.layer("Null 1").effect("Final Adustment")("Slider")/100);

    [x,yFinal]

    Johnny Cuevas, Editor
    ThinkCK

    “I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
    —THOMAS EDISON on inventing the light bulb.

  • James Ronan

    November 24, 2015 at 5:25 pm

    Wow!

    Thanks so much for the fast reply! This is a nice work around!!

    Much Appreciated !!!

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