Luddy
03-19-2009, 05:57 PM
string $cVA[] = `ls -sl`;
float $vSA[3] = `pointPosition -w $cVA[0]`;
//would need button for 1st vertex
string $cVB[] = `ls -sl`;
float $vSB[3] = `pointPosition -w $cVB[0]`;
distanceDimension -sp $vSA[0] $vSA[1] $vSA[2] -ep $vSB[0] $vSB[1] $vSB[2] ;
I'm trying to create a ruler between two verts. Works ok but I want to the user to select two vertices instead of needing user input after selecting the first.
If I do string $vert[]= ls I'll get object.vtx[4:5], must be something simple. Thanks...
float $vSA[3] = `pointPosition -w $cVA[0]`;
//would need button for 1st vertex
string $cVB[] = `ls -sl`;
float $vSB[3] = `pointPosition -w $cVB[0]`;
distanceDimension -sp $vSA[0] $vSA[1] $vSA[2] -ep $vSB[0] $vSB[1] $vSB[2] ;
I'm trying to create a ruler between two verts. Works ok but I want to the user to select two vertices instead of needing user input after selecting the first.
If I do string $vert[]= ls I'll get object.vtx[4:5], must be something simple. Thanks...
