View Single Post
# 11 12-04-2010 , 10:27 PM
Registered User
Join Date: Mar 2010
Posts: 9
Hi... yes, I did initially take the code on this link

https://support.digitaltutors.com/ent...cript-lesson-3

That didn't work.

I read the forum, before starting this thread.... the one you sent me, but they weren't experiencing the same problem as me and I could not post a question.

I didn't think to copy paste their code until you sent it to me again

Eventually this was the one that worked

// 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 Column2: button descriptions

separator; separator;

button -label "acrLen 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