Python vs MEL

Last week I started reading Mark Lutz book learning Pyhon. I can really recomend it ! It´s really pedagogic and gives alot of great examples. The main reason for me to learn Python is that the scripting capabilities of  MEL is quite limited,  when it comes to variable types, and alot of other things… The built in objects in Pyhon offers  great flexibility and lets you process data much more easily then MEL lets you. A big thing in Python programming compared to other languages is that the variables don´t have a specific type they are just references to the built in objects which have types and methods associated to them. When “sketch coding” in Maya using Python you will never ever again get the annoying error “Invalid redeclaration of variable “$myVar” as a different type” that you get in MEL when changing the type of an already created variable. Bara en sån sak : )

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>