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

I tried Linked Properties on different comps, but it didn't go as i wanted.

New Here ,
Jul 07, 2024 Jul 07, 2024

So, I created a window design inside a different composition, and I want to create a size control inside the main composition. But I found a problem, when I add a keyframe in the control, the shape of the window inside the composition doesn't change, it just sticks to the value in the first keyframe.

I still don't understand the expression system, so I just rely on the parent system.

TOPICS
Expressions
686
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

correct answers 1 Correct answer

Community Expert , Jul 07, 2024 Jul 07, 2024

Based on what I can see in your video, if you replace your scale expression with this, you should be good to go:

C = comp("MainComp");
ctrl = C.layer("Control").scale;
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)
Translate
Community Expert ,
Jul 07, 2024 Jul 07, 2024

 Are you using an expression to link the scale inside the precomp to the control in the main comp? If so, please post the expression you're using.

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
Community Expert ,
Jul 07, 2024 Jul 07, 2024

Based on what I can see in your video, if you replace your scale expression with this, you should be good to go:

C = comp("MainComp");
ctrl = C.layer("Control").scale;
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)
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
New Here ,
Jul 07, 2024 Jul 07, 2024

ahhh, yeah... it make sense now, i forgot bout valueAtTime... it works now! 

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
Community Expert ,
Jul 07, 2024 Jul 07, 2024
LATEST

It's only an issue if you keyframe a control in the main comp and the start time of the precomp layer in the main comp is not zero.

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