Chapter 3. Using Expressions

In this chapter you will learn

  • How to create an expression.

  • How expressions work.

  • When to use an expression.

  • How to use expressions to create relationships between attributes.

  • Techniques of scaling and offsetting numerical attributes with expressions.

  • Using a custom attribute to control the behavior of other attributes.

What Is an Expression?

In Maya, an expression is a script that calculates values for one or more attributes in your scene. There are two types of expressions: particle expressions, which control per-particle attributes in a particle object, and object attribute expressions, which control per-object attributes.

Although on the surface these two kinds of expressions look quite similar, they are created and used ...

Get MEL Scripting for Maya Animators, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.