-
Box limit
var posx = transform.xPosition;
var posy = transform.yPosition;
var rect = thisComp.layer("BG Box").content("Rectangle 1").content("Path 1").scale;
var x= ease(posx,rect[0]/-2+20,rect[0]/2-20,10,100);
var y= ease(posy,rect[1]/-2+20,rect[1]/2-20,100,10);
[x,y]
This time, I want to establish the limit in this white box regardless of its scale. I mean, if the scale changes the limit changes too.
Here my wrong attempt:
Thank you!!