Page 1 of 1

setting workAreaDuration

Posted: June 16th, 2007, 3:13 am
by zantek
how to set the work Area Duration of an active comp, to be as long as a footage Item?
schematically:
work area duration = layer duration
or
comp out point = layer out point

Posted: June 30th, 2007, 1:29 pm
by Paul Tuersley
Here's an example that sets the work area to match the currently selected layer:

Code: Select all

{
	var theComp = app.project.activeItem;
	var theLayer = theComp.selectedLayers[0];
	theComp.workAreaStart = theLayer.inPoint;
	theComp.workAreaDuration = theLayer.outPoint - theLayer.inPoint;
}