-
Clamp position in a circle instead of x- and y-axis.
Hi!
I have a comp where one shape layer is called “Leader”, and another “Follow”. The comp dimensions are 2000, 2000 px, and the shape layers are both positioned in the middle (1000,1000). I wish to create an expression, where the Follow layer always moves in the opposite direction of the Leader layer (on both x- and y-axis), but I also need the position value of the Follow layer to be restricted to a circle with a radius of 500px.I found a post on this forum about clamping the position into a circle: https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=30737&univpostid=30737&pview=t which works just fine on my Follow layer, but I don’t know how to edit the expression so that the layer would also move in the opposite direction of the Leader layer.
Any ideas of how to create an expression that executes both tasks?
Gratefully,
Saara