PDA

View Full Version : New to scripting .



Fusedgore
07-10-2009, 12:52 PM
Hello i am just getting started into scripting and I was curious about a few things and some dvd training material .Obviously i am not going anywehre else but DT to get my training as they are unmatched .

Though i have a few questions .
I use maya 2008 and 2009 32 and 64 bit versions and i was wondering which dvd tut would better suit me .I am getting the Python Scripting in maya but i was wondering which one i should get to learn the MEL scripting language .Would it be the Intoduction to MEl or the Artist Guide to Mel .I only ask because it looks like The intro to Mel was made when maya 6.0 was out and since MAya 2008 and 2009 are out now ,hasnt the MEL language changed since the 6.0 version or should i just get .


Thanks Fusedgore

sunder
07-10-2009, 01:11 PM
Hi Fusedgore. MEL hasn't changed substantially over the years. The content of Intro to MEL is still applicable. Now as to which one to go with, consider my opinion. Artist's Guide to MEL is very contextual or more applicable for an artist while Intro to MEL is more thorough in programming concepts.

Fusedgore
07-12-2009, 12:12 PM
Well i coded my first plugin for maya .Very simple as you will see .Though i am having trouble laucnhing the program when i press the buttons .As it dont launch the program .


Would i have to use an if statement or .Code is below



string $window = `window -title "External App Launcher"
-iconName "Short Name"
-widthHeight 200 200`;


// Define The Layout Of The Buttons In The Window


columnLayout;

symbolButton -image "cs2.xpm"; text -label "launch cs2"; system("start C:/Program Files (x86)/Adobe/Adobe Photoshop CS2" );


symbolButton -image "cs3.xpm"; text -label "launch cs3";


symbolButton -image "ZBrush.xpm"; text -label "launch ZBrush";


text -label "Coded By ™Shaun Keenan" -align "right";


showWindow $window;



I want it to launch on all versions of windows 32 or 64 so should i try an if statement or ,Thanks in advanced