13
Maya Python [email protected] http://meltobis.weebly.com/ -Melanie Torres Bisbal-

Maya Python (PyMel)

Embed Size (px)

DESCRIPTION

We are going to see different things about programming in Maya: - Introduction - What is MEL? - Maya API - Python - Python versus MEL - Interaction with Maya - Why PyMel? - An Intro to PyMEL Objects in Maya - Help - References

Citation preview

Page 2: Maya Python (PyMel)

Contents

Page 3: Maya Python (PyMel)

Introduction

●●●●●

[1]

Page 4: Maya Python (PyMel)

What is MEL? [2]

Page 5: Maya Python (PyMel)

Maya Api - Python

C++ Application Programming Interface- The most flexible way to add features to Maya- Execute substantially faster than MEL- Must be compiled for new versions of Maya and for each different platform

Python API- Wrappers for many classes in the Maya C++ API- Manipulate Maya API objects in ordinary scripts

Page 6: Maya Python (PyMel)

Python v.s. MEL

Python MELPython is used by all kinds of software developers and with many types of applications

More advanced scripting language and it can communicate with both Maya Command Engine and the C++ API

Python can call MEL scripts

Python handles complex data more gracefully (object-oriented)

Can access files and system data much faster

MEL has a very small userbase compared to Python because almost only Maya developers use MEL

If you have tools done in MEL there is no reason to convert them into Python

MEL can call Python scripts

Try to imitate complex data structures

Page 7: Maya Python (PyMel)

Interaction with Maya

[2]

Page 8: Maya Python (PyMel)

Why PyMEL?

Page 9: Maya Python (PyMel)

Why PyMEL?

Page 10: Maya Python (PyMel)

An Intro to PyMEL Objects in Maya

Page 11: Maya Python (PyMel)

An Intro to PyMEL Objects in Maya

MEL PyMEL

Page 12: Maya Python (PyMel)

Help