setting workAreaDuration

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
zantek
Posts: 4
Joined: June 15th, 2007, 7:49 am

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
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

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;
}
Post Reply