View Single Post
# 9 12-04-2010 , 10:07 PM
ctbram's Avatar
Moderator
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,998
Code looks fine but the double quotes are incorrect. When I copied and pasted your code it was throwing errors for all the lines that had double quoted items. I simply retyped those lines using the " instead of whatever you had and it worked fine.

I am not sure but the ` character you are using looks fine. It is the key to the left of the 1 key on a standard US keyboard. The ` character instructs the interpreter to execute the command contained between the ` characters.

If you look at what you have posted you have a different kind of " symbol at either end of the double quoted items. They have a tilt to them. I can't even find those quote symbols on my keyboard?

Here is what I typed in. You can see the difference in the double quotes " symbol. It's next the the ; key on my keyboard....

//checks for our Window and Deletes it

if (`window -exists Node_Generator`)
{
deleteUI -window Node_Generate;
}

// Window for our Node Generator

string $Node_Generator = `window
-title "Node Generator"
-wh 128 256
Node_Generator`;


//Define our row and column layouts

rowColumnLayout -numberOfColumns 2 -cw 2 50;

// Column 1: buttons, column 2: button descriptions

separator; separator;

button -label "Arclen maker" -c "CurveInfo()"; text -label "CurveInfo";

separator; separator;

button -label "Mult Div" -c "multDiv()"; text -label "Mult Div Maker";

//shows our window
showWindow $Node_Generator;


"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram; 12-04-2010 at 10:11 PM.