join
int $joinnum = 5;
string $objs[]= `ls -sl`;
vector $join0tr = `xform -q -ws -t $objs[0]` ;
vector $join1tr = `xform -q -ws -t $objs[1]` ;
string $curvename = `curve -d 1 -p ($join0tr.x) ($join0tr.y) ($join0tr.z) -p ($join1tr.x) ($join1tr.y) ($join1tr.z) -k 0 -k 1` ;
rebuildCurve -ch 1 -rpo 1 -rt 0 -end 1 -kr 0 -kcp 0 -kep 1 -kt 0 -s ($joinnum-1) -d 1 -tol 0.01 $curvename;
select -r curve1.cv[3] ;
xform -q -ws -t "curve1.cv[2]" ;
xform -q -ws -t "joint2" ;
joint -p 7.864679 0 -1.612305;
浙公网安备 33010602011771号