LOPs - primvars texturing

// get primvars list
string primvarsStr = chs("pvs") ;
string primvarsList[] = split(primvarsStr," ");
int primvarsListNum = len(primvarsList);
string primpathList[] ;

// assign default dna urls if needed
for (int j=1; j<primvarsListNum+1; j++) {
push(primpathList, chs("pvsDNA"+itoa(j)));
}

// create primvars based on list
for (int i=0; i<primvarsListNum; i++) {
usd_addprimvar(0, chs('primpattern'), primvarsList[i], "asset");
usd_setprimvar(0, chs('primpattern'), primvarsList[i], primpathList[i]);
}