-
Adjust start times with expressions?
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
Sorry, there were no replies found.