-
Getting “undefined” error when using startTime.setValue()
I’ve written a script that splits the footage layers of a comp into multiple segments and shuffles their order. The script’s final job is to sequence these layers and I’m not sure how to do that. My code is throwing a “myLayer.startTime.setValue is undefined” error.
myLayer = myComp.layer(n);
for (n = 2; <= myComp.numLayers; n++) {
previousOutPoint = myComp.layer(n - 1).outPoint - crossfade; // get the previous layer's outPoint
myLayer.startTime.setValue(previousOutpoint); // and use it to set this layer's startTime
}
Anyone know how I can move layers in the timeline with scripting?
