//This script creates the clusters and orients them for the string lattice (a 3x100x3 lattice). Check the local rotation axis of your joints and fix this script to rotate accordingly.//

//make the clusters//

string $string_joints[] = `ls -dag stB_joint1`;

for ($u = 0; $u < 100; $u++) {

string $clstName = ("stB_Cluster"+($u + 1));
string $clstNameRot = ("stB_Cluster"+($u + 1)+"Handle.rotateAxis");
string $joint = ("stB_joint"+($u + 1));

select -r ffd_st1LAT.pt[0:2][$u][0] ffd_st1LAT.pt[0:2][$u][1] ffd_st1LAT.pt[0:2][$u][2];
cluster -n $clstName;

//orient them to the direction of the joints//

select -r $clstNameRot;
rotate -r -os 0 0 -90;

}

Go back to String Creation.