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 10. Procedures and Functions

In this chapter you will learn

  • A useful strategy for breaking up a large problem into smaller pieces called top-down design.

  • How MEL features for breaking up your scripts into small chunks of code can help implement the top-down strategy.

  • The differences between a procedure and a function.

  • How you define a procedure or a function.

  • How procedures and functions support a top-down approach.

  • What is a procedure’s scope and how you can use global procedures to make scripts available anywhere in your code.

  • About procedures and functions calling themselves, an approach called recursion.

Top-Down Design

When designing a script to solve a complicated problem, it’s rarely a good idea to try to write the entire script, beginning ...

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