-
Script to trim end point of layer when opacity is at 0%.
Hello all,
I’d like to create a script that looks a selected comp (or selected layers), and trims the end point of each layer when the opacity is at 0%.
The context is Power Point presentations. I have the slides on a time line, each with an expression that looks at a .csv file, turning the opacity to 0% when timeToCurrentFormat() reaches the specified time.
The expression:
f=footage(“TimeCode.csv”).dataValue([1,index-1]);
s=timeToCurrentFormat();
if (s<f)100; else 0;
<font face=”inherit”>The expression works great, the only issue is the render time. Some of these are 100+ layers, and I feel they would render much more quickly if the end points were trimmed so the expression on each layer wasn’t running the whole time it renders. Of course I could do it </font>manually<font face=”inherit”>, but that too takes a fair amount of time.</font>
<font face=”inherit”>Any ideas?</font>
Thanks in advance,
Kyle