-
Anyone that can assist in revising a script?
I’m using the Sequencer script, provided by VideoCopilot for free many years ago.
While very useful, the script has one mayor flaw in that it takes the layer start point and not the in point in consideration, so when working with trimmed comps used as layers it does not work.I tried revising it (code attached at the bottom) by changing startTime to inPoint, and it sort of worked. The layers slide in a somewhat expected way, but one of them gets trimmed to less than one frame and they don’t actually jump in time, but instead the contents get slid inside their own comps.
screenshot2017-11-02at11.06.15am.png
Thanks in advance.
function Sequencer()
{
var curComp = app.project.activeItem;
if (!curComp || !(curComp instanceof CompItem))
{
alert("Please select a Composition.");
return;
}var offsetFrames = parseInt(prompt("Number of frames to offset", "1"));
for (var layerId = 0; layerId < curComp.selectedLayers.length; layerId++)
{
var layer = curComp.selectedLayers[layerId];layer.startTime = layerId * offsetFrames * curComp.frameDuration;
}
}Sequencer();