PDA

View Full Version : Wrong number of arguments on call to reorder.


Alfons
10-15-2005, 10:18 AM
I have a problem. I have scripted a script that uses the reorder command. After I sourced the script and ran it I can't manually reorder in the Outliner, I get this message.

// Error: reorder -relative -3 ben1_pPlane ; //
// Error: Wrong number of arguments on call to reorder. //

this the script


global proc kf_readLayoutReorder (string $name)
{
string $s;
int $i = 0;
string $line[];
string $dirname = `pwd`;
string $tokens[];
string $exampleFileName = ($dirname + "/" + $name + ".txt");
string $planeNames[];
$fileId = `fopen $exampleFileName "r"`;
string $nextLine = `fgetline $fileId`;
while ( size( $nextLine ) > 0 )
{
tokenize ($nextLine) $tokens;
$planeNames[$i] = $tokens[0];
$nextLine = `fgetline $fileId`;
$i = $i + 1;
}

fclose $fileId;
$i = 0;
for ($s in $planeNames)
{
reorder -back $planeNames[$i];
$i = $i + 1;
}
}

CGTalk Moderation
10-15-2005, 10:18 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.