IKSplineのセットアップなどでカーブにクラスターを作りたい時など。
For creating clusters on curves when setting up IKSpline.
// Curve Degree
string $crv[] = `ls -sl`;
int $degree = eval(“getAttr ” + $crv[0] + “.degree”);
// Curve Spans
int $spans = eval(“getAttr “+$crv[0]+”.spans”);
// output the cv count
int $numCVs = $spans + $degree;
print (“numCVs = “+$numCVs+”n”);
for ($i= 0; $i < $numCVs; $i++){
select -r ($crv[0]+ “.cv[" + $i + "]“) ;
newCluster ” -envelope 1″;
}