hello,
Is there a way to clamp a X Position opn after effects on several different values?
I've been using this code:
x1=1024.3322
x2=1224.1572
clamp(transform.xPosition,x1,x2)
if (transform.xPosition>x1) {
transform.xPosition=x2;
}
But that only allows me to snap from one position to another. I'd like to be able to snap into 6 positions (on X dimension).
is there a way to do that?
I use the Snaped position to get the position value and use in another layer but i really need to be clamped.
Thanks,
GR