Copy link to clipboard
Copied
Hi!
Trying to get the position of the first X layers in comp and create an array of arrays with it.
dosn't work.
thanks!
var positionArray = [];
for(var p = 3; p>=1; p-=1 )
var myComp = app.project.activeItem;
//alert(myComp.layer(p).name);
positionArray.push(myComp.layer(p).position);
alert("Finished")
}
Try this instead:
positionArray.push(myComp.layer(p).position.value);
Copy link to clipboard
Copied
Try this instead:
positionArray.push(myComp.layer(p).position.value);
Copy link to clipboard
Copied
Thanks! it worked 🙂
Find more inspiration, events, and resources on the new Adobe Community
Explore Now