jason108
11-09-2007, 04:33 AM
Hi,
I’m having trouble with running my proc. I’m going through the digital tutors Cartoon rigging tutorial. He starts off by making this window called “Node Generator”.
I can make the window fine with the first script(bold).
//checks for our Window and Deletes it
if (`window -exists Node_Generator`) {
delete -window Node_Generator;
}
// Window for our Node Generator
string $Node_Generator = `window
-title "Node Generator"
-wh 128 256
Node_Generator`;
// Define our Row and Column Layout
rowColumnLayout - numberOfColumns 2 - cw 2 50;
// Column1: buttons Column 2: button descriptions
separator; separator;
button -label "arcLen Maker" -c "CurveInfo()"; text -label "CurveInfo";
separator; separator;
button -label "Mut Div" -c "multDiv()"; text -label "Mult Div Maker";
//shows our window
showWindow $Node_Generator
Then I’m suppose to run the proc (blue)by highlighting it in the mel window and hitting ctrl enter on my keyboard. But then I get an error(red) and the arclen button doesn’t work.
proc CurveInfo() {
string $sel[] = `ls –sl`;
for ($obj in $sel)
arclen –ch 1;
}
proc CurveInfo() {
string $sel[] = `ls –sl`;
for ($obj in $sel)
arclen –ch 1;
};
// Error: string $sel[] = `ls –sl`; //
// Error: Syntax error //
Then I’m suppose to run another proc(green) by doing the same thing ctrl enter but again I get an error(orange) and the Mult Div button doesn’t work.
proc multDiv() {
createNode –n div01 multiplyDivide;
}
proc multDiv() {
createNode –n div01 multiplyDivide;
};
// Error: createNode –n div01 multiplyDivide; //
// Error: Syntax error //
Can you guys see or understand what’s going on?
Thanks
Jason
I’m having trouble with running my proc. I’m going through the digital tutors Cartoon rigging tutorial. He starts off by making this window called “Node Generator”.
I can make the window fine with the first script(bold).
//checks for our Window and Deletes it
if (`window -exists Node_Generator`) {
delete -window Node_Generator;
}
// Window for our Node Generator
string $Node_Generator = `window
-title "Node Generator"
-wh 128 256
Node_Generator`;
// Define our Row and Column Layout
rowColumnLayout - numberOfColumns 2 - cw 2 50;
// Column1: buttons Column 2: button descriptions
separator; separator;
button -label "arcLen Maker" -c "CurveInfo()"; text -label "CurveInfo";
separator; separator;
button -label "Mut Div" -c "multDiv()"; text -label "Mult Div Maker";
//shows our window
showWindow $Node_Generator
Then I’m suppose to run the proc (blue)by highlighting it in the mel window and hitting ctrl enter on my keyboard. But then I get an error(red) and the arclen button doesn’t work.
proc CurveInfo() {
string $sel[] = `ls –sl`;
for ($obj in $sel)
arclen –ch 1;
}
proc CurveInfo() {
string $sel[] = `ls –sl`;
for ($obj in $sel)
arclen –ch 1;
};
// Error: string $sel[] = `ls –sl`; //
// Error: Syntax error //
Then I’m suppose to run another proc(green) by doing the same thing ctrl enter but again I get an error(orange) and the Mult Div button doesn’t work.
proc multDiv() {
createNode –n div01 multiplyDivide;
}
proc multDiv() {
createNode –n div01 multiplyDivide;
};
// Error: createNode –n div01 multiplyDivide; //
// Error: Syntax error //
Can you guys see or understand what’s going on?
Thanks
Jason
