Transforming Objects and Components in Maya 8
- Moving, Rotating, and Scaling Objects
- About Pivot Points
- Duplication Options
- Mirroring and Instancing Objects
- Soft-Modifying Objects
Maya gives you many ways to move, rotate, and scale objects around a scene, and many shortcuts for completing these common tasks. These actions, known as transformations, can be performed in a couple of different ways: You can type new coordinates or values in the Channel Box or use one of the many manipulation tools (Figure 4.1) to drag an object freely around the scene or constrain it to an axis.
Figure 4.1 Maya's manipulation tools.
Using the same tools you would employ to manipulate objects in the scene, you can also manipulate parts of an object, known as components. Each object type has its own components that can be translated (Figure 4.2), rotated, and/or scaled to change their look and position, in turn changing the appearance of the object.
Figure 4.2 The Move tool's Translation manipulator is used to move objects and components around the scene.
Most tools include advanced features (shown in the Tool Options) that you can explore as your knowledge base grows. The duplication options provide a good example of this. Once you get used to using them, you can employ a number of advanced options like duplicating an object multiple times throughout your scene, or using them to construct and mirror objects.
Moving, Rotating, and Scaling Objects
Maya provides multiple tools for moving, rotating, and scaling objects and components. The Universal Manipulator tool can perform all of these operations at once, which can be helpful when an object requires all three transformations. We'll discuss the Universal Manipulator tool in more detail later in this chapter.
Each of these tools, including the Universal Manipulator tool, has axes that you can grab and move to transform an object. These axes, called manipulators (Figure 4.3), let you translate (move), rotate, or scale the object. Manipulators make it easy to constrain objects along a particular axis: You click and drag the colored line for the axis along which you want to constrain the object. The colors remain consistent for each tool. RGB colors coincide with the x-y-z axes (Figure 4.4): The manipulator's x axis is red, the y axis is green, and the z axis is blue. If you forget an axis's color, check the View axis in the lower left-hand corner of each pane or the View Compass at upper right (Figure 4.5). The axis selected on the manipulator is always yellow.
Figure 4.3 The Move, Rotate, and Scale manipulators.
Figure 4.4 RGB colors match the x-y-z axes.
Figure 4.5 Check the View axis in the lower-left corner of each pane to remind yourself which color is associated with each axis.
In addition to constraining an object along an axis, you can freely manipulate the object by clicking and dragging the square in the middle of the Move, Scale, and Universal Manipulator tools (Figure 4.6), or by clicking and dragging anywhere inside the Rotate manipulator.
Figure 4.6 The Universal Manipulator combines the common functions of the Move, Scale, and Rotate tools.
To get precise results, you can also use the Channel Box for numerical entry. The Channel Box allows direct access to any of the attributes (translation axis, rotation axis, and scale values) that the translation tools affect.
Each of the tools in the toolbar—with the exception of the Lasso tool, the Soft Modification tool, and the Universal Manipulator—has an associated shortcut that coincides with qwerty keys on the keyboard. You can press a tool's key (or, in the case of the Universal Manipulator, the key combination) to turn on its manipulator.
The shortcut keys and the manipulators they turn on are as follows (Figure 4.7):
Arrow selection tool
Move tool
Rotate tool
Scale tool
Universal Manipulator
Show Manipulator
Last tool used
Figure 4.7 The manipulation tools and their shortcut keys.
To translate an object or component using the Move tool
- Select an object or component by clicking it.
Press , or click the Move tool icon in the toolbar.
The Move manipulator becomes visible on the object or component (Figure 4.8).
Figure 4.8 The Move manipulator is used to move the object around the scene.
Click and drag the manipulator's arrow in the direction you want the object to move (Figure 4.9).
Figure 4.9 Click and drag the axis to which you want the object constrained so that you can maintain precise control over the surface's position. This is particularly useful in the Perspective view.
This action translates the object along the selected axis.
or
Hold down , and then, with the middle mouse button, click and drag in the direction you want the object to move (Figure 4.10).
Figure 4.10 By holding down and dragging with the middle mouse button, you can move an object without using the manipulator handles.
This action selects the appropriate manipulator axis and translates the object in that direction. This is particularly useful if you've created an object at the origin but moved the camera away from the grid. You can pull the object into your camera view if you know the direction of the origin.
or
To translate the object freely, click and drag the center of the manipulator, and the motion won't be constrained on any axis.
Figure 4.11 The Scale tool's marking menu includes shortcuts for scaling proportionally and changing the pivot options for components.
To scale an object or component using the Scale tool
- Select an object or component by clicking it.
Press , or click the Scale tool icon in the toolbar.
The Scale manipulator becomes visible on the object or component (Figure 4.12).
Figure 4.12 You use the Scale tool's manipulator to scale an object proportionally or along a single axis.
Click the small square of the axis on which you want to scale the object or component, and drag in the direction you want the object to scale (Figure 4.13).
Figure 4.13 Click and drag a Scale tool's axis to scale an object along a particular axis.
or
While pressing , click and drag with the middle mouse button anywhere in the pane in the direction in which you want the object to scale (Figure 4.14).
Figure 4.14 This cylinder is being scaled along the x axis by shift-clicking and dragging with the middle mouse button.
To rotate an object or component using the Rotate tool
- Select an object or component by clicking it.
Press , or click the Rotate tool icon in the toolbar.
The Rotate manipulator becomes visible on the object or component (Figure 4.15).
Figure 4.15 The Rotate manipulator is used to rotate the surface on one or more axes.
- Click the circle of the axis around which you want to rotate the object or component, and drag in the direction you want the object to rotate (Figure 4.16).
Figure 4.16 Click and drag the axis circle to which you want the object constrained. A gray pie slice shows you how many degrees you have rotated the object.
Figure 4.17 The light-blue outer ring rotates the object or component in the view plane.
To translate, rotate, or scale an object or component using the Channel Box
- Click an object or component to select it.
- In the Channel Box, click once in the field next to the attribute you want to change (Figure 4.18).
Figure 4.18 Click the field name of the attribute you want to change (in this case, Translate X).
Type a new value in the selected field. The object reflects the value change (Figure 4.19).
Figure 4.19 Changing the Translate X value to 3 moves the cone three units in the positive x direction.
or
Click to select the attribute's name, and then move the mouse over a view pane. Hold down the middle mouse button, and drag left or right to interactively change the value of the selected attribute (Figure 4.20).
Figure 4.20 You can use the middle mouse button to interactively change values anywhere in a pane.
Using the Universal Manipulator
The Universal Manipulator provides easy access to three transformations in one tool (Figure 4.21). You can use it to enter exact values without using the Channel Box, and it enables you to quickly perform these operations around different temporary center points.
Figure 4.21 The Universal Manipulator combines many functions for quick manipulation. It's a great time saver for performing common transformations.
The Universal Manipulator also provides real-time information about how far you have translated or rotated an object (Figure 4.22).
Figure 4.22 Using the translation axis displays a color-coded triangle showing exactly how far you have moved your object along each axis.
The Universal Manipulator does have its limits. For instance, it can't rotate freely in all directions, and you can't use it to manipulate components—only objects.
To translate an object using the Universal Manipulator
- Select an object or component by clicking it.
Press , or click the Universal Manipulator tool icon .
The Universal Manipulator becomes visible on the object or component (Figure 4.23).
Figure 4.23 The Universal Manipulator shows a bounding box around your object.
Click the axis you want to translate, and drag the mouse to translate in that direction.
or
Click the center circle, and drag the mouse to translate the object freely.
or
Click once on the tip of the translation axis, and enter a numerical value in the box that appears (Figure 4.24).
Figure 4.24 Entering a precise value saves a trip to the Channel Box.
To rotate an object using the Universal Manipulator
- Select an object or component by clicking it.
- Press , or click the Universal Manipulator tool icon .
Click the arrow corresponding to the axis you want to rotate, and drag the mouse to rotate on that axis (Figure 4.25).
Figure 4.25 When you're rotating an object on an axis using the Universal Manipulator, the length (in degrees) of the rotation is displayed near the rotation handle.
or
Click once on a rotation arrow, and enter a numerical value in the box that appears.
To scale an object using the Universal Manipulator
- Select an object or component by clicking it.
- Press , or click the Universal Manipulator tool icon .
Click a vertex of the bounding box, and drag to scale the object evenly on all axes (Figure 4.26).
Figure 4.26 Scaling with the bounding box scales to the opposite corner of the one you've selected.
Note that the Universal Manipulator uses the opposite corner from the one you've selected as the center point for the scale. This means it scales toward the opposite corner instead of the center of the object.
or
Click one of the size numbers, and enter a numerical value.
Using the Show Manipulator tool
The Show Manipulator tool lets you access the Inputs node of an object (known as its construction history) to alter a surface or curve. In other words, the Show Manipulator tool gives you access to certain attributes used in the creation or manipulation of an object that are usually available only in the Channel Box or Attribute Editor (Figure 4.29).
Figure 4.29 The additional manipulator on the Show Manipulator tool controls additional input attributes, saving you from going to the Channel Box. In this example, End Sweep was changed to less than 360 degrees by moving the circular manipulator.
The Show Manipulator tool is commonly used to adjust spotlights and cameras. When you use it on a spotlight, the light has three manipulators instead of one—one to move the light; one for the light to point at, which makes adjusting lighting easier; and one represented by a circle with a tick mark, which adjusts the attributes to be manipulated.
To aim a spotlight using the Show Manipulator tool
- Select Create > Lights > Spotlight.
Click the Show Manipulator icon in the toolbar.
The spotlight now has one manipulator at its base and another in front of the light (Figure 4.30).
Figure 4.30 Two manipulators appear, giving you more precise control over what objects the spotlight is pinpointing and the direction in which the light is aimed.
- Select and move the manipulator at the base of the spotlight (Figure 4.31).
Figure 4.31 Select the manipulator attached to the spotlight to translate the light.
Select and move the manipulator in front of the spotlight.
The spotlight remains in place but continues to point at the manipulator (Figure 4.32).
Figure 4.32 Move one manipulator to exercise control over the light or its target.
Click twice on the ring that hovers near the spotlight.
The manipulators change into a ring around the cone of light. Each time you click the ring, you cycle through some of the cone's input nodes (Figure 4.33).
Figure 4.33 Most objects display a blue ring from which you can access that object's input nodes or attributes interactively.
Click and drag the cube atop the circle that surrounds the cone.
The cone angle changes interactively as you drag the mouse (Figure 4.34).
Figure 4.34 The cone angle controls the width of the light beam.