Chapter 8. Manipulating Nodes in MEL

In this chapter you will learn

  • How your MEL scripts can find nodes in your scene by name.

  • How to manage the selection list.

  • Choices for ways to create nodes in your MEL scripts.

  • Finding parents and children of nodes in the transform hierarchy.

  • Finding information about node connections.

  • About Maya’s node types and the DG Node Reference.

As we discussed in Chapter 5, MEL scripts often serve to help build structures of nodes in your scenes. Chapter 5 discussed the basics of creating nodes, connecting their attributes, setting attribute values with getAttr and setAttr, and creating expressions in your MEL scripts. In this chapter, we discuss in more detail how your scripts can manipulate and create nodes.

Using ls Command ...

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.