megazor
11-15-2010, 08:48 AM
//checks for our Window and Deletes it
if ('window -exists Node_Generate') {
delete -window Node_generate;
}
// Window for our Node Generator
string $Node_Generator = 'window
-title ”NodeGenerator”
-wh 128 256
Node_Generate';
//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 ”Multi Div” -c ”multiDiv ()”; text – label ”Mult Div Maker”;
//shows our window
showWindow $Node_Generator
---------------------
I tried writing exactly as the Tutor of Digital Tutor's "Cartoon Character Rigging in Maya", but for me it doesn't work.
Can someone see what the error might be with this script?
This is the response the Script Editor gives me:
// Error: if ('window -exists Node_Generate') {
//
// Error: Syntax error //
// Error: }
//
// Error: Syntax error //
if ('window -exists Node_Generate') {
delete -window Node_generate;
}
// Window for our Node Generator
string $Node_Generator = 'window
-title ”NodeGenerator”
-wh 128 256
Node_Generate';
//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 ”Multi Div” -c ”multiDiv ()”; text – label ”Mult Div Maker”;
//shows our window
showWindow $Node_Generator
---------------------
I tried writing exactly as the Tutor of Digital Tutor's "Cartoon Character Rigging in Maya", but for me it doesn't work.
Can someone see what the error might be with this script?
This is the response the Script Editor gives me:
// Error: if ('window -exists Node_Generate') {
//
// Error: Syntax error //
// Error: }
//
// Error: Syntax error //
