Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions It’s possible use a linear interpolation expression with the Scale ???

  • It’s possible use a linear interpolation expression with the Scale ???

    Posted by Maxim Nieva on February 13, 2020 at 5:31 pm

    Hi !

    I’m working in an AE project and I’m trying to link 2 scales of different layers with a linear interpolation expression. For example:

    ease(t, tMin, tMax, value1, value 2)

    I set the scale of “layer 1” and in the scale of “layer 2” I put the expression linked to the scale of “layer 1”. Like this way:

    ease(layer1.scale, 0, 100, 0, 80)

    So, I received an error. First, I thought it was caused by the fact the scale are 2-parameters value, so I’ve tried also including this with arrays ([ ]). I’ve tried in many different ways and always I get an error.

    The problem continues, so finally I’ve find a much easier way to do the work, but now I’m wondering if it’s possible or not to use this kind of expressions with the scale or maybe there is another way that I can not think of…

    Well, sorry, my english is not the best… Thank you for read!

    Maxim Nieva replied 6 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Alex Printz

    February 13, 2020 at 8:14 pm

    try it like this

    s = ease(thisComp.layer("layer1").transform.scale[0], 0, 100, 0, 80);
    [s,s]

    Alex Printz
    Mograph Designer

  • Maxim Nieva

    February 13, 2020 at 8:53 pm

    Yes !!!

    That works. Thanks !

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