Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

After Effects 3D Transformation Stack Values and Javascript

New Here ,
Feb 08, 2013 Feb 08, 2013

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
857
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 14, 2013 Feb 14, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines