FORUMS: list search recent posts

Lock my Position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nikola Morin
Lock my Position
on Nov 8, 2012 at 8:12:12 pm

Hi everybody!
I think is a simple question but i don't know how to formulate it so...

I have shape that's lock on th X axis. here the expression that I use:

x = value[0];
y = 110;
[x,y]

So i can move the x axis and the Y axis is lock to 110.

But what i would like is to lock my X axis between two value.
For example my shape position will be lock betwwen 100 and 400 pixel on the x axis..

So how should i write this???

Thank you!!


Return to posts index

Dan Ebberts
Re: Lock my Position
on Nov 8, 2012 at 9:04:08 pm

Is this what you mean?

x = clamp(value[0],100,400);
y = 110;
[x,y]


Dan



Return to posts index

Nikola Morin
Re: Lock my Position
on Nov 8, 2012 at 10:16:52 pm

That's exactly what I meant!!

Thank Dan
once again you've got the answer!!!


Return to posts index

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