-
Rotate Mask using Expression
Hi forum,
I have this expression to sizing my mask, from this how can I rotating this?
myShape = mask("Mask 1").maskPath;
boxSize = 50;
rot = effect("Angle Control")("Angle");
tgn = [[0,0],[0,0],[0,0],[0,0]];
for (i = 0; i < myShape.points(0).length; i++) {
p1 = myShape.points(0)[0] = anchorPoint+[boxSize,boxSize] //br
p2 = myShape.points(0)[1] = anchorPoint+[-boxSize,boxSize] //bl
p3 = myShape.points(0)[2] = anchorPoint+[-boxSize,-boxSize] //tl
p4 = myShape.points(0)[3] = anchorPoint+[boxSize,-boxSize] //tr
}
createPath([p1,p2,p3,p4],tgn,tgn,true);