-
Collecting layers from a comp to an array only returns 20 elements Extendscript
I have this script:
var comp = app.project.activeItem;
var layers = [];
for (var i = 1; i < comp.numLayers; i++){
layers.push(comp.layer(i));
}I have about 30 layers on the comp, but when the loop arrives to 20, the loop continues but stops pushing the layers in the array. No matter what kind of layers are inside of the comp or if all the layers are the same layer duplicated, it stops at 20. Somenone can figure out why is this happening?