a general approach might be this :
string $all[]=ls -sl
;
string $count;
string $Command="polyCreateFacet -ch on -tx 1 -s 1 ";
for ($count in $all)
{
vector $pos=xform -q -t -ws $count
;
$Command+=" -p ";
string $add=$pos;
$Command+= $add;
}
eval $Command;
but when you select Geometry.vtx[2] and Geometry.vtx[3] and Geometry.vtx[5]
the $all string will be like this Geometry.vtx[2:5]
so execute this first :
string $all[];
int $i=0;
make this a shelf button
string $current[]=ls -sl
;
$all[$i]=$current[0];
$i+=1;
then select one vertex press the button ,select ,press.........
when the selection is finished execute :
string $count;
string $Command="polyCreateFacet -ch on -tx 1 -s 1 ";
for ($count in $all)
{
vector $pos=xform -q -t -ws $count
;
$Command+=" -p ";
string $add=$pos;
$Command+= $add;
}
eval $Command;