Thanks a lot for explaining why my approach didn’t work.
I tried what you did but got various results. Frame Duration alone got me start frame of 2, doubling it got me a start frame of 3. Guessing it has to do with the overall length of the comp being different?
I tried just doing displayStartTime = 1 and got a start frame of 24. So I tried 1/24 and got 1. I’m guessing this only works for a comp with a frame rate of 24 but since I work in animation and we do everything at 24 this works:
var myItems = app.project.selection;
for (var i = 0; i < myItems.length; i++) {
if (myItems[i] instanceof CompItem) {
myItems[i].displayStartTime = 1/24;
}
}