ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Adjust start times with expressions?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ocean Byrne
Adjust start times with expressions?
on Jun 25, 2020 at 10:28:43 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]