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

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

New Here ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

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

Views

158

Translate

Translate

Report

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)

Votes

Translate

Translate
Community Expert ,
Jul 07, 2024 Jul 07, 2024

Copy link to clipboard

Copied

 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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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