-
ExtendScript – Items in my dropdown list are repeating – Help
Hello forum…
Wondering if anyone on here can explain where I’m going wrong here. I have a dockable UI which contains a dropdown list that pulls in all layer names from a specific comp. I kinda have it working, however, the item names in the dropdown are duplicating and combining on each line.
See screenshot and Scrips snippet.
Thanks in advance, any help appreciated!
var proj = app.project;
var sytleFull = proj.item(5);
var myList = new Array();
for(var i=1; i <= sytleFull.numLayers; i++){
myList[myList.length] = sytleFull.layer(i).name;
pal.grp.groupTwo.asignGrid.add("item", myList);
}
pal.grp.groupTwo.asignGrid.selection = 0;