Thanks for the reply dave, but this is actually a bit tedious
- Select Layer
- Click to unfold layer’s properties
- Click to unfold audio properties
- Click to unfold audio’s waveform
- Scrub to the end of the waveform
- Press ctrl ]
- Scroll down to be able to see next layer
- Repeat
If this is a one time job, i would tame my impatience for a bit, but it would drive me crazy when i get the next batch of videos to process lol.
On another note, while looking through the extendscript guide, i found this method “app.project.item(i).layer(i).audioActiveAtTime(time)”
which is a good starting point. I’m thinking to loop through all the layers i want to trim, and with a nested for loop [i = layersLength; i > 0; i–] that decrements the time by 1 sec call the audioActiveAtTime method, until i get a false, then record that time and trim the layer to it.
Hopefully this all works out when i’m out of work tomorrow.