16 February, 2016

Shame

#awesome maya script
#selects the parent of the selected object
import maya.mel as mel
mel.eval ("pickWalk -d up;")



6 comments:

  1. # MEL is shameful, use pymel. :p
    import pymel.core as pm
    pm.select(pm.ls(sl=1)[0].getParent())

    ReplyDelete
    Replies
    1. Yes, after learning that mel is terrible (tons of boiler plate code required), tried using python but was still limited by some of mel's most annoying parts. Then tried pymel (which is very similar to maxscript) and loved it. Code was easier to read, string/hierarchy/variable management wasn't painful anymore. It's all good. Accidently managed to write mel/pymel hybrid code the first time, it worked without errors somehow.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Your blog is very useful for me.I really like you post.Thanks for sharing.
    goldenslot
    สูตรบาคาร่า

    ReplyDelete