Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking value of another layer to layer in- and out-point

  • Linking value of another layer to layer in- and out-point

    Posted by Mikael Johnsson on October 15, 2021 at 8:56 am

    What i want to do:
    – Have a Master layer in a comp in which there is a specific values keyframed from 0–1s and 1–2s. (Basically a custom ramp up and ramp down)

    – On multiple layers in another comp i want to link these “Master values” to the current layers in- and out-points. So at the layers inpoint: follow the first second of values of the master layer, then stay at that value until the last second of the layer which should follow the values of the last second of the master layer.

    Hope somebody can help.

    Mikael Johnsson replied 4 years, 10 months ago 1 Member · 1 Reply
  • 1 Reply
  • Mikael Johnsson

    October 15, 2021 at 9:40 am

    I might have sorted it out myself using valueAtTime and some if statements.

    masterValue = comp("MAIN_CONTROLS").layer("TypeOut_MASTER").text.animator("Animator 1").selector("Range Selector 1").start;
    if (time - inPoint < 1) {
    masterValue.valueAtTime(time-inPoint);
    } else
    if (time-outPoint > -1) {
    masterValue.valueAtTime(time-outPoint+2);}
    else
    masterValue.valueAtTime(1);

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