PDA

View Full Version : Xform


xcomb
05-16-2007, 10:35 AM
Can you explain me what i am doing wrong!
I have 5 spheres in my scene and 5 locatros, i want each sphere to be constrained to individual locator, in stead i have all my spheres jumping over to one locator but also has influence of each locator, kinda wondering, what's going on.


string $loc[] = `ls -type "locator"`;
string $fish[] = `ls -type "mesh"`;

string $fishList[] = `listRelatives -p $fish`;
string $list[] = `listRelatives -p $loc`;

for($eachLoc in $list){
for($eachMesh in $fishList){
pointConstraint -offset 0 0 0 -weight 1 $eachLoc $eachMesh;
orientConstraint -offset 0 0 0 -weight 1 $eachLoc $eachMesh;
}
}

//////////////////////////////////

Well and again i got it solved :)


string $loc[] = `ls -type "locator"`;
string $fish[] = `ls -type "mesh"`;

string $fishList[] = `listRelatives -p $fish`;
string $list[] = `listRelatives -p $loc`;

for($i = 0; $i < 5; $i++){
pointConstraint $list[$i] $fishList[$i];

}///FIXED

CGTalk Moderation
05-16-2007, 10:35 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.