Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Adjust start times with expressions?

  • Adjust start times with expressions?

    Posted by Ocean Byrne on June 25, 2020 at 10:28 pm

    Is there a way to adjust layer start times, or ad time remapping and then offset both the start and end frames with expressions?

    Dan Ebberts hooked us up with this awesome expression to distribute multiple layers between a Start and End Layer, I’d also like to be able to distribute the start time of each layer betwixt the Start layer and End Layer…

    startLayerName = "Start Layer";
    endLayerName = "End Layer";
    sStr = 'thisComp.layer("' + startLayerName + '")';
    eStr = 'thisComp.layer("' + endLayerName + '")';
    sIdx = eval(sStr + '.index');
    eIdx = eval(eStr + '.index');
    p = thisProperty;
    str = ".value";
    while(!(p instanceof Layer)){
    str = '("' + p.name + '")' + str;
    p = p.propertyGroup(1);
    }
    sVal = eval(sStr + str);
    eVal = eval(eStr + str);
    linear(index,sIdx,eIdx,sVal,eVal)

    _________
    Ocean Byrne
    Humble Pixel Farmer

    Ocean Byrne replied 5 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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