Skip to main content
Adryos Prewandha
Participant
July 7, 2024
Answered

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

  • July 7, 2024
  • 1 reply
  • 725 views

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.

This topic has been closed for replies.
Correct answer Dan Ebberts

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)

1 reply

Dan Ebberts
Community Expert
Community Expert
July 7, 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.

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
July 7, 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)
Adryos Prewandha
Participant
July 7, 2024

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

- pxlwrld