ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Clamp Expression - Only xClamp works when applying xClamp and yClamp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sebastian Paetz
Clamp Expression - Only xClamp works when applying xClamp and yClamp
on Jan 27, 2020 at 12:23:24 pm

Hey guys,

here the problem:

I want to limit the scale of my text from min. 45% to max. 85%.

So i tried this expression on the scale:

yClamp=clamp(transform.scale[1],45,85);
[transform.scale[0], yClamp];


xClamp=clamp(transform.scale[0],45,85);
[xClamp, transform.scale[1]];

Now the xClamp works fine for the x value, but the y value is not affected.

Anyone knows what to do to get the y value affected, too?

Thanks in advcance,

Basti

yClamp=clamp(transform.scale[1],45,85);
[transform.scale[0], yClamp];


xClamp=clamp(transform.scale[0],45,85);
[xClamp, transform.scale[1]];


Return to posts index

Dan Ebberts
Re: Clamp Expression - Only xClamp works when applying xClamp and yClamp
on Jan 27, 2020 at 5:00:32 pm

Try it this way:

clamp(transform.scale,[45,45],[85,85])


Dan



Return to posts index

Sebastian Paetz
Re: Clamp Expression - Only xClamp works when applying xClamp and yClamp
on Jan 27, 2020 at 5:09:58 pm

works perfectly. thank u so much!


Return to posts index

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