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

Getting global coordinates from parented local coords.

Aficionado ,
Oct 29, 2010 Oct 29, 2010

I have a mocha tracked null. I child another null thats slightly offset in XY. Now the child's coordinates are relative to the parent. But how can I get the child's true position in the comp?

This seems too easy:

thisComp.layer("parentNULL").transform.position + thisComp.layer("childNULL").transform.position

Am I missing something?

TEMAS
Expresiones
3.9K
Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Community Expert ,
Oct 29, 2010 Oct 29, 2010

That should work if they're both nulls, but this is probably the better way to do it:

thisComp.layer("childNULL").toWorld([0,0,0])

Or maybe this, if it's all 2D stuff:

thisComp.layer("childNULL").toComp([0,0,0])

Dan

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Aficionado ,
Oct 29, 2010 Oct 29, 2010
MÁS RECIENTES

Aha! Fantastic! I was getting some minor misalignment errors with my method. Yours is spot on! Thank you!

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines