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

Calculating relative scale of a nested layer

Explorer ,
Apr 03, 2018 Apr 03, 2018

Let's say I have a layer in my main comp, and the same layer is also placed in a deeply nested comp which has a different resolution as well as different scales along the way.

The nice script called LayerStalker (Layer Stalker - aescripts + aeplugins - aescripts.com ) allows attaching the position of my layer on the main comp to the exact "visual" position of the inner layer.

However, it doesn't solve the scale issue - the layer in the main comp won't have the same scale as the inner one, and I'm trying to write an expression that will calculate the "visual" scale of the outside layer so it will match the inner layer.

So I tried to multiply the scales along the way (scale of first layer / 100) * (scale of inner layer / 100) * (scale of inner inner layer / 100)..., but it didn't work.

I'll appreciate your help.

I hope what I'm trying to achieve is clear.

Thank you

TOPICS
Expressions
473
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
LEGEND ,
Apr 03, 2018 Apr 03, 2018

You cannot simply multiply. You need to properly calculate the effective scale factor every time, including using the comp size as the layer size in the parent comp. The real scale will always be different from AE's values.

Mylenium

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
Explorer ,
Apr 03, 2018 Apr 03, 2018
LATEST

So can you please advise on how do I do that?

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