//version 1: not working due to the curve command does not accept the string as flag. //load resource //-----get total number of vertex------- int $nverts = $num[0]; //----set up the command for curve print ("hello" + $cc); curve -p $verts[1] -p $verts[2] -p $verts[3] -p $verts[4];
|
|
version 2: I created a linear curve (straight lines) between two vertex to form an continous string. //get the x y z position of vertex global proc vector[] getVertices2(string $tnode) int $n; //--get the second node curve -p $x $y $z -p $x $y $z -p $x2 $y2 $z2 -p $x2 $y2 $z2; //individual straight lines //curve -d 0 -p $x $y $z -p $x2 $y2 $z2 ; //single smooth line //curve -d 3 -a -p $x $y $z curve1;
//source "H:/vsfx705/mel/PolyMeshUtils.mel"; string $myobject[] = `ls -sl`;
|
change mel to: curve -a -p $x $y $z curve1; |
version 3: lines loop from last back to first. break into individual lines to make NURB extrude right. Lines are grouped //get the x y z position of vertex global proc vector[] getVertices2(string $tnode) //--get the first node //--get the last node //create a line //make a group int $n; $item = $tnode + ".vtx[" + ($n+1) + "]"; $result[$n] = `curve -d 1 -p $x $y $z -p $x2 $y2 $z2` ; //parent result to primary group parent $result[$n] $gname; //source "H:/vsfx705/mel/PolyMeshUtils.mel"; string $myobject[] = `ls -sl`;
|
|
some test in Renderman
|