Answered
How to Modify the startTime of Precompose Using Script
Because the script command precompose() does not have a corresponding syntax to manually precomp the option checkbox called ‘Adjust composition duration to the time span of the selected layers’, I manually specified the start and end times. However, I found that
var start = 30; var end = 60 ; var preComp = app.project.activeItem.layers.precompose([layer.index], layer.name,true); preComp.startTime = start; preComp.duration = end - start;
These lines have been executed successfully, but the start time of the precomp is still at time 0 on the timeline. What’s going on?
