-
Extract scale values from matrix (toWorldVec)?
I have a 3×3 matrix (generated from layer.toWorldVec) and I would like to extract scale values from this matrix. Is this possible? I found some expression to extract rotation values which seems to work well, but I haven’t found a way for scale.
// 3x3 matrix
L = thisComp.layer("Dark Gray Solid 1");
u = L.toWorldVec([1,0,0]);
v = L.toWorldVec([0,1,0]);
w = L.toWorldVec([0,0,1]);
[u,v,w]* The matrix can also be a matrix coming from another application but in the same format.
Thanks for the help :).