Show in Contents
Add to Favorites
Home: Autodesk Maya Online Help
Communicating between Python and MEL
Lesson 5: Using Python in Maya
Assets
Beyond the lesson
In this lesson, you learned
how to access Maya’s functionality through Python scripting commands.
You can:
- Type basic Python commands in the Script
Editor to access Maya Commands.
- Use named arguments as flags at object
creation time to specify the attributes for the objects.
- Use commands that require multiple arguments
by packing the arguments in a tuple or list.
- Edit the attributes of objects using
a command with the edit flag.
- Execute Python commands from the MEL
interpreter and execute MEL commands from the Python interpreter.
- Transfer values between Python and MEL.
The MEL tutorials introduce
some other uses for scripting in Maya. You can follow through with
the MEL tutorials by using the Python Command Reference to
translate MEL commands to their Python equivalents.
Python can also be used
to write scripted plug-ins. For more information, see
Introduction to Maya Python API.