Ok, this will now automatically work in any composition size. Apparently 600:100 is a ratio that works for all comp to world sizes, interesting…
Btw, I need to know if you need this in a script form, because, obviously, if you are moving the control points, around, they can’t be controlled by the same code. I’ll ask Dan or repost this question.
The best thing I can think of is use your input position as my input anchorpoint. I’ll see what I can come up with.
cw = thisComp.width /2
ch = thisComp.height/2
an = thisComp.layer(“check”).transform.anchorPoint;
b = thisComp.layer(“characterComp”).transform.scale;
c = thisComp.layer(“characterComp”).transform.scale[0];
x=toWorld(b);
t1=linear(c,0,100,cw+an[0],600);
t2=linear(c,0,100,ch+an[1],600);
[t1,t2];
https://technicolorsoftware.hostzi.com/