PDA

View Full Version : Trouble With Mel script



Meneas
04-09-2009, 12:25 PM
Im having trouble with the smallest of scripts but i canīt seem to get it to create the window, so i canīt/wonīt go on writing if the easiest part wont work.

Anyone who can help me with this, i will be greatly appreciated.
Im running maya2009 on winxp sp3 (in case this info is relevant to anyone)
--------------------------------------------------------------------------------------

//Window For Node Generator

string $Node_Generator = `window
-title "Node_Generator"
-wh 128 256
Node_Generate`;
//Defin Row and Column Layout

rowColumnLayout -numberOfColumns 2 - cv 2 50;

//Column1: buttons Column2: button description

separator; separator;

button -label "ArcLen Maker" -c "CurveInfo()"; text -label "CurveInfo";

//Shows Window
showWindow $Node_Generator

--------------------------------------------------------------------------------------

sunder
04-09-2009, 01:18 PM
What is the error you are getting in the script editor? Check out this helpdesk entry; it may be useful
http://www.digitaltutors.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=151

daisukey
04-11-2009, 04:25 PM
The -cv flag doesn't exist..

try below.


string $Node_Generator = `window
-title "Node_Generator"
-wh 128 256
node_Generate`;
//Defin Row and Column Layout
rowColumnLayout -numberOfColumns 2;
//Column1: buttons Column2: button description
separator;
separator;
button -label "ArcLen Maker" -c "CurveInfo()";
text -label "CurveInfo";
//Shows Window
showWindow $Node_Generator;

Meneas
04-12-2009, 03:32 PM
The -cv flag doesn't exist..

try below.

thanks a looott!!!, you solved it, almost went mad trying to figure it out and it wwas actually a stupid mistake, thank you both very very much.