PyMel is far slower than mel or default python. As Jeremy YK, pyMel is a wrapper of the python and maya api. If you are using api calls on a single object (like querying vertex position etc), it will as fast as the python API.
But for everything accessible through mel, like the "ls" command, pymel can be up to 40 times slower on huge scene (from my experience). There is a big overhead of wrapping all returned strings to PyMel nodes. For me it's only a way to write faster and in a more pythonic way. But it's going to be always slower than mel, python or API. And it's HUGE to load. I personally just need it to be fast so pymel is useless to me. In my codes, I finally removed all pymel call with default python command, and I made a simple node wrapper to keep a few pymel functionality. Le jeudi 18 septembre 2014 11:58:11 UTC+2, Srinivasan Samuel a écrit : > > Hi pyGeeks & pyNERDS out there :) > > I salute you all. Knowing Python(an OK scripter) I have started learning > Maya scripting from MEL and now gravitating towards pyMEL as I feel thats > the way to go. > > I also want to know the cons of pyMEL over Python in Maya & MEL ofcourse. > Please refer the following link and this gentleman says pyMEL is slower > than MEL. > > http://jeremyyk.com/tutorials/maya-s-python-api-2-0- > > Could somebody motivate and justify me that pyMEL is the future & the way > to go :) > > I appreciate your time. > > Solomon. > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/07319b50-d8d6-4830-8576-17baf3a328e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
