03 September, 2013

Yo dawg...(credit: Julik)


6 comments:

  1. If you use MEL: You're doing it wrong!

    ReplyDelete
  2. 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:

    try: maya.cmds.FUNC(*args, **kwargs)
    except: continue

    and every import was:
    try: import someModule
    except: import someModule

    me: FFFFFFFFFFFUUUUUUUUUUUUUUUUUUU

    ReplyDelete
  3. 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!

    but omfg!? Who writes crap like that?!?! 0_o!?

    ReplyDelete
  4. Well I think it's more beneficial to get comfortable with Python than with MEL, as Python is more powerful.

    ReplyDelete
    Replies
    1. 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.

      Delete

  5. import 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

    ReplyDelete