heheh I think I’m going to have to do somethign like this. It’s sounding to me like you want a 1-1 correspondence between teh verts of one poly and the verts of the other. your problem as far as I can understand it, is converting the users selection to a index that can be used to reference your master poly vert array, from which you will get the corresponding vert from your child array.
To get the users selection as an index, what i think you can do, given the following:
[edited - took out extra command]
given (get verts from selection)
string $verts =
filterExpand -sm 31;
and then use match (regxp) to grab the rear [ … ] for each element in the string.
I haven’t used regular expressions in a while so please forgive the following if its wrong:
int $vertIndex =
int( match( "\]$[0-9]+[. " , $verts[$num]) )
(from the back, starting at ], grab all the numbers and stop at first occurence of [)
could ("[0-9]$+") work too? I haven’t tested these expressions out.
hope that helps