-
Question about skew and expression
Hello everyone,I have found a problem I’m while trying to modify the isometric look of shape layer
This is shape layer 3, It has skew value of 44 and zero rotation

This is Shape layer 2,No skew value and zero rotation

The depth of shape layer 3 is control by null object with slider control name Depth

I tired to make Shape layer 2 to and layer 3 protrude by this expression
//Increase Depth to protrude shape layer 2 and 3
SVal=44;//the skew value of layer 3
S=thisComp.layer("Shape Layer 3"); //refer to shape layer 3
a=S.sourceRectAtTime(time-S.inPoint,true).height;//Get height of shape layer 3 at current time, because i cannot get a dimension of shape layer when I skew it.
x = a/Math.tan(degreesToRadians(SVal));// Tan value of 44
y =a;
value+[x,y]//move shape layer 2
The problem arise when I crank the Depth value to some value , the border of shape layer 2 and 3 tends to move away from each other

The question is
1-How did it happend
2-If the skew value is like, 50 the angle between rectangle border and line perpendicular to it will be 50?. or am i wrong?. If i was wrong, can i ask you how does the skew work.
Any answer will be appreciated