PDA

View Full Version : Why doesn't this work??


fred45
11-19-2002, 04:01 AM
I would like this script to create joints between locators that I've selected. but it won't work can some one tell whats going wrong.


string $sel[] = `ls -sl`;
// $jpos = `xform -q -ws -rp $sel[0]`;
int $num = 1;
string $currentLoc;
for ($currentLoc in $sel)
{
text -l $currentLoc;
$jpos = `xform -q -ws -rp $currentLoc`;
// joint -p $jpos[0] $jpos[1] $jpos[2] -n ($currentLoc + "_joint" + $num++);
print ($currentLoc + "\n"); //this print returns the xform xyz in the loop but won't allow me to use it with the joint command
print ($jpos);
}
// Error: Only one transform/joint can be selected for creation //

CGTalk Moderation
01-13-2006, 08:00 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.