-
Scripting question: Is it possible to execute the “Trim Comp to Work Area” command in a script?
I’m a longtime AE user, but just getting in to scripting. After digging through the AE scripting guide I can’t see a way to perform the convenient “Trim Comp to Work Area” command.
I could do something like this:
// get the comp item
var myComp = app.project.items(1);
// set the comp's duration to 5 seconds
myComp.duration = 5;
// set the work area to start at 1 second
myComp.workAreaStart = 1;
// set the work area duration to 3 seconds
myComp.workAreaDuration = 3;If the Work Area started at the beginning of the Composition I could just do this:
myComp.duration = 3;But if I want to trim off the first second of the Comp and then have its duration be 3 seconds, I’m not sure how I can do that. Any help is much appreciated!
Thanks!
~Matt