I threw this code into a wrangle:
string @name[];
int i;
int j = nuniqueval(0, "prim", "name");
string nmz[];
nmz = uniquevals(0, "prim", "name");
for (i=0; i<j; i++)
{
string indx = itoa(i);
@name[i*2] = itoa(i);
@name[i*2+1] = nmz[i];
}
Which outputs this:
[ 0, 4Syt.Shape, 1, ArctekArm.Shape, 2, DFPants.Shape, 3, HairCap.Shape, 4, HersiliaBrows.Shape, 5, HipHopSneakers.Shape, 6, Lashes.Shape, 7, LashesBase.Shape, 8, PaceHoodie.Shape, 9, visor_2.Shape ]
Which, as far as I can tell from the information I've found, is how Python wants the data to be formatted in order to output a menu, but I keep getting an error message about the data needing to be a flat list of strings....so how is it not exactly that?