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 6. Variables and Data Types

In this chapter you will learn

  • How to declare variables and why it sometimes is not necessary.

  • What global and local variables are and how are they used.

  • How to choose between global variables, attributes, and option variables for storing data that must persist.

  • Which MEL commands can be used to read and set environment variables.

  • Why Maya distinguishes between different types of data in the MEL language.

  • What the different data types available in MEL are.

  • How to perform basic operations on data of each type.

  • How and why to convert data from one type to another.

  • The differences between integer and floating-point operations, and how they can surprise you.

  • The differences between arrays and vectors.

In the examples in

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