View Full Version : How to Start?


rebolt
09 September 2007, 08:34 AM
Hey i am new to MEL although i haven't started yet. I really want to learn scripting as they make the complicated work easier. So my question is where should i start from ? Should i learn C language first and then start working in MEL or should i start MEL basics directly and work on it ?
Need your views.

Thanks

dbsmith
09 September 2007, 10:32 PM
Nah man, forget C. Just jump straight in.
Its all pretty easy, you just need to figure out some simple concepts of variables and procedures. Try RobTheBlokes site to get started.
MEL can be complex, but if you're doing simple stuff, you shouldn't have too many problems. Just search for some simple tutorials on the net and work your way through them.

ewerybody
09 September 2007, 01:00 PM
exactly!

In my experience you need an example case to start with!
Pic a task for yourself and try to do it.

1. get an editor of your choice
2. if necessary get context highlighting for it
3. read code "Echo All Commands" prints out
4. read the Maya Mel Docs! They are pretty neat! (http://localhost:4449/MayaX.X/en_US/Commands/ <-- X.X is your Maya version!)
5. search the web, mel boards and sites (eg: highend3d (http://www.highend3d.com/boards/index.php?showforum=4), mel wiki (http://mayamel.tiddlyspot.com/), brian ewert (http://ewertb.soundlinker.com/), Rob Bateman (http://www.robthebloke.org/mel/index.html) ... and here of course)
6. search scripts that do your task quite similar and try to dis/assemble them for your needs.

// now some scripting specific stuff:
7. // comment your scripts a lot!!
8. { use scopes }
9. give your procedures comprehensible names (not: doIt, create ...)
...

goleafsgo
09 September 2007, 01:29 AM
Try reading the "Conversational MEL" 1/2/3 articles here:

http://www.nimblestudiosinc.com/joomla/articles.html

The are quite easy to read and follow.

CGTalk Moderation
09 September 2007, 01:29 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.


1