Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 3. MEL > Objects - Pg. 127

3.4 OBJECTS 127 It is possible, but it isn't advisable, to store your scripts directly in the following directory: Mac OS X: /Applications/Maya x.x/ All Others: maya_instal/\scripts\ It is always best to keep your scripts separate from the standard Maya scripts. This prevents your accidently overriding one of the standard Maya scripts with your own. It also helps simplify updating. UPDATING If users are already running Maya when you deploy your scripts, they won't automat- ically use the latest version. To do this they need to quit Maya then restart it. Alter- natively, they could simply source the scripts. In both cases, this ensures that they are using the latest versions of your scripts. 3.4 OBJECTS MEL is most commonly used to create and edit objects. This section covers the variety of commands devoted to objects. As mentioned earlier, all Maya objects are actually Dependency Graph nodes, so the process of creating and manipulating objects really involves creating and manipulating nodes. Fortunately you don't have to know the exact details of each object or node in order to use it. There are a lot of MEL commands designed specifically to access objects without your knowing their inner workings. Some commands can also operate on a variety of different objects. 3.4.1 Basics The following covers some of the basics of object creation and manipulation using MEL: 0 Open the scene. The scene contains three NURBS primitives: a cone, a sphere, and a cylinder. A very common operation is to get a complete list of objects in the scene.