Escolar Documentos
Profissional Documentos
Cultura Documentos
In the case of the C++ API, Autodesk went with an open source
wrapper called swig which generates python functions and classes
from C++ counterparts. The python layer rests on top of C++, which
remains the native execution language. During execution, swig
marshals data back and forth between python and C++.
MEL itself is split into two components: commands, and everything
else.
maya.cmds
object oriented:
pymel.ls(type='camera')[0].getParent().translate.get().z
See how nicely that reads from left to right? Object oriented
programming isnt necessarily about brevity, its about legibility
derived from structure.
Glossary
MEL
C++ API
provides deeper access to Mayas internals. With the API you can
create new node types and new MEL commands. Prior to the
introduction of python in Maya, the API could only be used with C+
+.