Hi,
I want to store the coordinates of four vertices of my selection in an array. If these vertices are not in series (for example .vtx[1],.vtx[3],.vtx[5],.vtx[7]) my code seems like follow:
string $sel[] = ls -sl;
$CoordinatesVertexLowerLeft = pointPosition ($sel[0]);
$CoordinatesVertexUpperLeft = pointPosition ($sel[1]);
$CoordinatesVertexUpperRight = pointPosition ($sel[2]);
$CoordinatesVertexLowerRight = pointPosition ($sel[3]);
But I have a problem when the vertices are in series (.vtx[1],.vtx[2],.vtx[3],.vtx[4]) :
so the vertices are stored in $sel[0] only ( *.vtx[1:4] ). So my Question: How can I store the coordinates of the vertices seperately like above????
Thx
Animayator