0
After Effects 3D Transformation Stack Values and Javascript
New Here
,
/t5/after-effects-discussions/after-effects-3d-transformation-stack-values-and-javascript/td-p/4863480
Feb 08, 2013
Feb 08, 2013
Copy link to clipboard
Copied
Is there any way to get the final computed values for a layer's position, rotation, and scale in global space through the Javascript interface?
That would include all parent rotation, translations, scales, and orientation changes. Basically, whatever is at the end of the 3D transform matrix stack.
Thanks,
-Brad
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Enthusiast
,
LATEST
/t5/after-effects-discussions/after-effects-3d-transformation-stack-values-and-javascript/m-p/4863481#M144599
Feb 14, 2013
Feb 14, 2013
Copy link to clipboard
Copied
Hi!
One solution would be to get the xyz value of pointTopLeft, pointTopRight, pointBottomRight via expression :
TL = toWorld([0,0,0]);
TR = toWorld([width,0,0]);
BR = toWorld([0,height,0]);
and then use the "AVLayer calculateTransformFromPoints()" method (see aftereffects_scripting_guide for details).
Hope it helps!
François
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

