View Single Post
# 1 10-08-2004 , 12:32 PM
mumbojumbo_13's Avatar
Subscriber
Join Date: Oct 2002
Location: The Land Down Under
Posts: 1,047

MEL scripting for maya animators help

hey i've been doing the book's crowd system
got to page 393 trying to creat the dialogue box i used this code:

//Interface

global proc crowdSystem()
{

window
-title "Crowd System"
-widthHeight 300 200
crowdWin;

//Create button
string $button1 = `button -label "Create"`;

//Place button in window
formLayout -edit
-attachForm $button1 "bottom" 10
-attachForm $button1 "right" 10
formLayout;

//Add command to button to call createCrowd function and
//then kill window after script has been executed

button -edit -command ("createCrowd; deleteUI crowdWin;") $button1;

showWindow crowdWin;

}
(copyright user added image )
but it doesn't show the window? ? ?
i using maya 5 did they change anything ?


Thanks for wasting your time reading this line.