Actually I would take a MEL script over a Python script that was written by someone who didn't really know what they were doing with Python. That can be far worse. 2000 line script where every maya.cmds call looks like:
True. There is no language that you can't mess up with. But if you start off with a stupid language... well there is no way to make it really good. After 10years of MEL... I'm just so glad about python in Maya!
hmm.. it's not just the "power". You see basically C++ is even more "powerful". But the turnarounds... Compared to mel py is less verbose, more manageable, versatile, and pretty well cooked.
If you use MEL: You're doing it wrong!
ReplyDeleteActually I would take a MEL script over a Python script that was written by someone who didn't really know what they were doing with Python. That can be far worse. 2000 line script where every maya.cmds call looks like:
ReplyDeletetry: maya.cmds.FUNC(*args, **kwargs)
except: continue
and every import was:
try: import someModule
except: import someModule
me: FFFFFFFFFFFUUUUUUUUUUUUUUUUUUU
True. There is no language that you can't mess up with.
ReplyDeleteBut if you start off with a stupid language... well there is no way to make it really good.
After 10years of MEL... I'm just so glad about python in Maya!
but omfg!? Who writes crap like that?!?! 0_o!?
Well I think it's more beneficial to get comfortable with Python than with MEL, as Python is more powerful.
ReplyDeletehmm.. it's not just the "power". You see basically C++ is even more "powerful". But the turnarounds...
DeleteCompared to mel py is less verbose, more manageable, versatile, and pretty well cooked.
ReplyDeleteimport maya.mel as mel
mel.eval("python \"for i in range(10): mel.eval('polyCube; move -r 0 '+str(i*2)+' 0')\"")
a python, that calls a mel, that calls a python that run a mel <3