sobek
05-12-2006, 07:50 PM
Is it possible to convert a selection of poly vertices into an array, where one could then call out specific verts based on their index number?
for example,
create a poly sphere,
select a few verts (say 6 for argument sake),
string $vertSelect[] = `ls -sl`;
print $vertSelect; // this will return all the selected verts, but
print $vertSelect[0]; // will only return the the vertex whose vertex number ID is the numerically lowest, not necessarily the first selected.
So is there a way to sort the vert array so the vert is indexed in order of selection , not on its vert ID?
Thanks!
for example,
create a poly sphere,
select a few verts (say 6 for argument sake),
string $vertSelect[] = `ls -sl`;
print $vertSelect; // this will return all the selected verts, but
print $vertSelect[0]; // will only return the the vertex whose vertex number ID is the numerically lowest, not necessarily the first selected.
So is there a way to sort the vert array so the vert is indexed in order of selection , not on its vert ID?
Thanks!
