Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Expression link to control in Master Comp (pre-comps have different start times)

  • Expression link to control in Master Comp (pre-comps have different start times)

  • Gabriel Aronson

    February 26, 2021 at 4:51 pm

    Hi there,

    I’m trying to link attributes within a variety of pre-comps to a keyframed master control in a master comp. However with a simple pick whip, the values within each comp are delayed by the amount they are offset in the compile comp, which does make logical sense but is not the desired result.

    Even though the comps start at different times, their relative time codes in the comp settings all line up to the master.

    Is there an expression-based way around this to instead of refer to time from the start of the comp, referring to actual time code of the master comp?

    In the attached example, I want the keyframe at the playhead at 2;13;51;14 to effect the precomp at 2;13;51;14 within its timeline, even though the comps have different starting frames.

    Many thanks!

  • Dan Ebberts

    February 26, 2021 at 5:05 pm

    Something like this maybe:

    C = comp("Master Comp");

    L = C.layer("Orange Tint");

    L.effect("CC Toner")("Blend w. Original").valueAtTime(time + C.layer(thisComp.name).startTime);

  • Gabriel Aronson

    February 26, 2021 at 5:33 pm

    Thank you Dan, this worked like a charm.

    So the thing to watch out for then is to make sure the layer name of the pre-comp doesn’t get changed in the master, right? And that if the multiple copies of the same pre-comp are offset only the first one in the hierarchy will be referenced.

  • Dan Ebberts

    February 26, 2021 at 7:10 pm

    To get it to work for duplicated comps, you need to do the duplicating in the project bin (not as duplicated layers in the main comp) and make sure each copy has a unique name.

Viewing 1 - 4 of 4 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy