Current Chapter: Chapter 1 - Intro
Up Next: Chapter 2 - What is MEL and Python

Intro to Scripting in Maya

In this course, instructor Chad Morgan will go through the basics in writing scripts in Maya in both MEL and Python. We will begin by discussing the difference between MEL and Python, why there are two different languages, and the pros and cons to each. We will show you how to bring up the scripting reference which will allow you to search the commands and their parameters so you can learn to create your own scripts. We demonstrate the syntax on both MEL and Python commands in Maya, including passing arguments to them.We will demonstrate how to create procedures and definitions, what variables are and how to create them, and how to pass variables between procedures and definitions. Following that, we will show, in both MEL and in Python, some of the more common functions in programming. The first are iterators, which allow us to perform the same task over lists of objects and comes in several forms. The second function common to all programming languages is the conditional statement, which allows us to test conditions before executing code and allowing us to branch the program depending on what conditions are met.  We finish by demonstrating how to save and reload your scripts in both languages.

  • Software: Maya
  • Author: Chad Morgan
  • Skill Level: Beginner
  • Video Length:
Chapter 1 - Intro
00:52
Chapter 2 - What is MEL and Python
18:26
Chapter 3 - Procedures and Definitions
07:08
Chapter 4 - Variables and Scope
13:39
Chapter 5 - Arrays and Lists
14:55
Chapter 6 - Pass by Reference
12:17
Chapter 7 - Iterators 01
19:33
Chapter 8 - Iterators 02
14:09
Chapter 9 - Conditional Statements 01
15:52
Chapter 10 - Conditional Statements 02
08:30
Chapter 11 - Saving and Sourcing
05:31
Chapter 12 - Conclusion
02:16

New Training Released Every Week.

Start learning today.