ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Maxim Nieva
It's possible use a linear interpolation expression with the Scale ???
on Feb 13, 2020 at 5:31:39 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!


Return to posts index

Alex Printz
Re: It's possible use a linear interpolation expression with the Scale ???
on Feb 13, 2020 at 8:14:02 pm

try it like this

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


Alex Printz
Mograph Designer


Return to posts index

Maxim Nieva
Re: It's possible use a linear interpolation expression with the Scale ???
on Feb 13, 2020 at 8:53:43 pm

Yes !!!

That works. Thanks !


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]