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
setting workAreaDuration
Moderator: 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;
}