Why is it giving me this error:“This procedure has no return value”. I want to store the name of the curve that is created from this proc in a variable. How is that possible?
global proc drawCurve(){
select -hi;
string $sel[] = ls -sl -fl;
int $noOfJnts = size($sel);
string $startJnt = $sel[0];
string $endJnt = $sel[$noOfJnts-1];
string $command = “curve”;
for($each in $sel){
vector $pos = xform -q -t -ws $each;
$command = $command+ "-p " + $pos + “”;
}
eval($command);
string $curve = ls -sl;
return $curve;
}
Thanks.