Sair
  • Comunidade global
    • Idioma:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bake Parent Transformations

Explorador ,
Dec 12, 2015 Dec 12, 2015

Hey folks, this is similar to a questions I asked a few weeks ago about baking in motion from a parented camera, but now I'm trying to do it with a footage layer, and I still can't quite get my head around what I need to do.

I'm trying to hand off my project from an animatic to a 3D animator, and it doesn't import properly on his system unless the layers aren't parented to anything in after effects.

So, my relatively simple (I thought) solution was to use the toWorld expression on layer to look at the old one and generate absolute position, anchor point, and X,Y,Z rotations.  However, repurposing the camera expressions:

C = thisComp.layer("Footage Layer");

C.toWorld(C.position)

Doesn't seem to do anything correctly. 

Just a little info on the project, the layer is the end of a chain of parents, which keyframe position and orientation.  The layer I'm trying to bake the keyframes for also has an animated anchor point.

I think I'm going to need expressions to bake in both the position and the anchor point as well as the orientation.

If anyone can help me put these expressions together I would be so grateful!  Thanks!

Cheers,

Ari

Dan Ebberts

TÓPICOS
Expressões
1.2K
Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines
Community Expert ,
Dec 12, 2015 Dec 12, 2015
MAIS RECENTE

The toWorld() transform translates from layer space, so you need to start with something represented in layer coordinates. Usually that would be the anchor point (or [0,0,0] for a camera or light), but if your anchor point is animated, you may need to use the center of the layer. So that would be like this:

L = thisComp.layer("Footage Layer");

L.toWorld([L.width/2,L.height/2,0]);

Dan

Traduzir
Denunciar
Diretrizes da comunidade
Seja respeitoso, dê crédito à fonte original do conteúdo e verifique se há cópias antes da publicação. Saiba mais
community guidelines