duration in composition
Hi,
I am new to After effect scripting. can you please tell me how to change (increase and decrease values) the composition duration through script .

Thanks
Hi,
I am new to After effect scripting. can you please tell me how to change (increase and decrease values) the composition duration through script .

Thanks
After Effects scripting reference page 31
AVItem duration attribute
app.project.item(index).duration
Description
Returns the duration, in seconds, of the item. Still footage items have a duration of 0.
• In a CompItem, the value is linked to the duration of the composition, and is read/write.
• In a FootageItem, the value is linked to the duration of the mainSource object, and is read-only.
Type
Floating-point value in the range [0.0..10800.0]; read/write for a CompItem; otherwise, read-only.
var myComp = app.project.activeItem;
myComp.duration = 10; // set duration
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.