// get primvars liststring primvarsStr = chs("pvs") ;string primvarsList[] = split(primvarsStr," ");int primvarsListNum = len(primvarsList);string primpathList[] ;// assign default dna urls if neededfor (int j=1; j<primvarsListNum+1; j++) {push(primpathList, chs("pvsDNA"+itoa(j)));}// create primvars based on listfor (int i=0; i<primvarsListNum; i++) {usd_addprimvar(0, chs('primpattern'), primvarsList[i], "asset");usd_setprimvar(0, chs('primpattern'), primvarsList[i], primpathList[i]);}