O'Reilly logo

MEL Scripting for Maya Animators, 2nd Edition by Mark R. Wilkins, Chris Kazmier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required