PDA

View Full Version : Help with a little prob.



catr8
01-04-2007, 12:36 AM
Please find attatch here with a snip of preparing Maya's enviroment to be able to follow the Introduction to maya: Walk Cycle. When I run it I get an error.

Alias Maya v7.0.1
WinXP SP2



This is the code snippet:

// Select the objects

string $myObjects [] =`ls -sl`;

string $myAttr []` channelBox -q -sma mainChannelBox`;

// start the loops

for ($myNode in $myObjects){
for ($myNodeAttr in $myAttr){
setKeyframe( $myNode+"."+$myNodeAttr );
}};

This is the error Maya gives me after I run the snippet :

// Error: string $myAttr []` channelBox -q -sma mainChannelBox`;
//
// Error: Syntax error //

Help!!!!!!! :confused:

papa
01-04-2007, 09:04 AM
maybe missing the = sign.
Papa

McGergs
01-04-2007, 11:03 AM
plus you have a space between ' channelBox

THis might be the issue too since Maya is picky with spaces