(select verts on a mesh, then shift-select nCloth...)
{string $test = createNConstraint pointToSurface 0;print ($test) ;}
createNConstraint pointToSurface 0
produces nothing. How do i return the name of the nConstraint I just created?
string $nc[] = createNConstraint pointToSurface 0;print $nc[0];
works for me.
{string $test[] = createNConstraint pointToSurface 0;select -r $test[0];}
// Error: string $test[] = createNConstraint pointToSurface 0; // // Error: Line 2.54: Cannot cast data of type string to string[].