PYTHON Highlevel intro to Python in Maya (cmds, Pymel, Openmaya 1.0 & 2.0)

PYTHON Highlevel intro to Python in Maya (cmds, Pymel, Openmaya 1.0 & 2.0)

hannesdelbeke
Enthusiast Enthusiast
996 Views
3 Replies
Message 1 of 4

PYTHON Highlevel intro to Python in Maya (cmds, Pymel, Openmaya 1.0 & 2.0)

hannesdelbeke
Enthusiast
Enthusiast

Here is a video I made discussing the various types of Python available in Maya. And when to use which API.
A lot of people still use cmds, and haven't discovered the advantages of Pymel yet. Hopefully this will help spreading the word.
The official Autodesk intro is also great at comparing both of them.
And I go over some examples in my video.

 

0 Likes
997 Views
3 Replies
Replies (3)
Message 2 of 4

hannesdelbeke
Enthusiast
Enthusiast

Let me know if it was usefull. I find that many studios are still using old API's such as cmds, or openmaya 1.0.
Mainly because they are not familiar yet with the new ones. Which tend to be an improvement!

0 Likes
Message 3 of 4

stuzzz
Collaborator
Collaborator

The studios I worked for have prohibited pymel for many reason related to the pipeline.

Maya still use python 2.7 for many reasons also. 

 

0 Likes
Message 4 of 4

hannesdelbeke
Enthusiast
Enthusiast

@stuzzz wrote:

The studios I worked for have prohibited pymel for many reason related to the pipeline.

Maya still use python 2.7 for many reasons also. 

 


Usually studios use cmds because that's what they have been using for a long time. And the existing setup and tools is all written in cmds. And likely the people who are responsible for the pipeline don't know pymel.
As mentioned at the end of the video, if your whole studio uses cmds you sometimes do not have much choice. But should still try to show others the benefits of what could be a better setup.

Regarding Python 2.7, that is not directly related to this video. But the sole reason for that is very similar. A lot of AAA game and film studios have their existing pipeline written in 2.7, and Autodesk has to support those studios. Upgrading worldwide to 3.0 comes at a cost and a lot of companies have been trying to postpone this as much as possible. The next release of Max will likely be supporting 2.7 and 3.0, so I would assume the same for Maya. 

The take away: a lot of studios have old legacy code and the only reason is usually time and cost. 

0 Likes