Skip to main content
Adryos Prewandha
Participant
Jul 7, 2024 5:34 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Jul 7, 2024 7:07 PM UTC

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)

4 replies

Dan Ebberts
Community Expert
Community Expert
Jul 7, 2024 6:34 PM UTC

 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
Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Jul 7, 2024 7:07 PM UTC

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
Adryos Prewandha
Participant
Jul 7, 2024 7:48 PM UTC

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

Translate
- pxlwrld