-
Expression to link shape object ‘paths’ but minus x pixels
Hi,
I need the correct expression to link the paths of two shape layer shapes, but such that one is x pixels smaller than the other, thus creating in inner and outer box as in the example pick.
I want to move the path of only one of the shapes (when reshaping box) and have the other move also, keeping the same separation of n pixels.
If I simply scale the shape objects when parented then the width of the stroke obviously changes which isn’t desirable.
I tried something like:
ON THE SHAPE LAYER PATH TO BE THE CHILD –
base=thisComp.layer(“BASE”).content(“Shape 1”).content(“Path 1”).path;
[base[0],base[1]]-[3,-3]…but my understanding of the array coding mathematically is wrong.
Any guidance would be good. Thanks

