-
Change a compositions workAreaStart and workAreaDuration with Expressions or loading .jsx-files with Expressions
Hey there,
Im looking for a way to dynamically change the length of a compositions workarea according to the footage contained within.
This can be done with Extended Script, but I cannot use .jsx-files placed in the scripts/startup folder because the script is executed before the composition is loaded and therefore I haven’t got any footage length to measure. Neither can I use the shutdown-folder because these scripts are executed when the project is closed…
So I think that leaves me with two possibilities:
1) Change the length of the composition with Expressions?
2) Find a way to run a Extended Script file when the project is loaded and the footage has been replaced?Best Regards,
Martin// is there a way to make this happen with Expressions??
var myComp = app.project.item(1);
var startTime = 0;
var duration = 30;
myComp.workAreaStart = startTime;
myComp.workAreaDuration = duration;