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:
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: