I had a go at Maxscript for the first time today. A group project at Uni required some automation of .obj importing and exporting so I sat down and started learning the language. The help in Max is pretty similar to Maya and so it was quite easy to pick up and do the necessaries. Here is the simple script for anyone who is interested import export .obj script
One or two interesting things to note is that running multi-line code in the Maxscript listener doesnt work. It took a while to figure that out and so I moved it all into an actual Maxscript and things started working fine. Another is the use of normal brackets () for loop statements and enclosing functions, a little strange when you've been using curly braces {} for years (PHP etc) and have just started learning not to use them as with Python.
All in all it looks a pretty goof thing to learn alongside Mel/Python and should be of value in the future :o)
No comments:
Post a Comment