Copy link to clipboard
Copied
Hi everyone
first of all I abolgize about my bad english.
I need to setup an expression that allow me to move an element manually just around another.
I now that I can move a layer around another by cos & sin expression but then I cant move it manually.
any suggestion ?
Try this position expression:
radius = 100;
p = thisComp.layer("Other Layer").position;
v = position - p;
length(v) > .001 ? p + normalize(v)*radius : p + [radius,0]
Copy link to clipboard
Copied
Try this position expression:
radius = 100;
p = thisComp.layer("Other Layer").position;
v = position - p;
length(v) > .001 ? p + normalize(v)*radius : p + [radius,0]
Copy link to clipboard
Copied
It's work. Thank you very much!