-
link skew and position in a shape layer
Hello everyone,
I am trying to link skew and position between two rectangle paths in a shape layer. I would like for the second one to skew as it moves on the X axis in order for it’s top right corner meets the top right corner of the first rectangle (making half of a rooftop).
I am trying to use Math.atan, but it only gives me small numbers between 1 and 1.5 more or less…
My rectangles both start at pos [0, 0] and the anchor points are at their center, so I divided the height by two.
Any help would be appreciated !
Thanks ????Here’s my expression for the skew property :
a = content(“Rectangle 1”).content(“Rectangle Path 1”).size[1]/2;
b = content(“Rectangle 2”).content(“Rectangle Path 1”).position[0];
Math.atan(a/b)

