Publishers of technology books, eBooks, and videos for creative people

# Transforming Objects and Components in Maya 8

• Print
In this sample chapter, you'll learn how to move, rotate, and scale objects around a scene as well as manipulate the parts, or components, of an object itself. Authors Morgan Robinson and Nathaniel Stein take you step-by-step through each of Maya's transformation tools in this task-based, visual guide.
This chapter is from the book

### This chapter is from the book 

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.

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.

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.

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.

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

### To translate an object or component using the Move tool

1. Select an object or component by clicking it.
2. Press , or click the Move tool icon in the toolbar.

The Move manipulator becomes visible on the object or component (Figure 4.8).

3. Click and drag the manipulator's arrow in the direction you want the object to move (Figure 4.9).

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).

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.

### To scale an object or component using the Scale tool

1. Select an object or component by clicking it.
2. Press , or click the Scale tool icon in the toolbar.

The Scale manipulator becomes visible on the object or component (Figure 4.12).

3. 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).

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).

This action selects the appropriate manipulator axis and scales the object in that direction.

### To rotate an object or component using the Rotate tool

1. Select an object or component by clicking it.
2. Press , or click the Rotate tool icon in the toolbar.

The Rotate manipulator becomes visible on the object or component (Figure 4.15).

3. 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).

### To translate, rotate, or scale an object or component using the Channel Box

1. Click an object or component to select it.
2. In the Channel Box, click once in the field next to the attribute you want to change (Figure 4.18).
3. Type a new value in the selected field. The object reflects the value change (Figure 4.19).

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).

### 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.

The Universal Manipulator also provides real-time information about how far you have translated or rotated an object (Figure 4.22).

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

1. Select an object or component by clicking it.
2. Press , or click the Universal Manipulator tool icon .

The Universal Manipulator becomes visible on the object or component (Figure 4.23).

3. 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).

#### To rotate an object using the Universal Manipulator

1. Select an object or component by clicking it.
2. Press , or click the Universal Manipulator tool icon .
3. Click the arrow corresponding to the axis you want to rotate, and drag the mouse to rotate on that axis (Figure 4.25).

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

1. Select an object or component by clicking it.
2. Press , or click the Universal Manipulator tool icon .
3. Click a vertex of the bounding box, and drag to scale the object evenly on all axes (Figure 4.26).

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).

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

1. Select Create > Lights > Spotlight.
2. 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).

3. Select and move the manipulator at the base of the spotlight (Figure 4.31). The spotlight moves with the manipulator but continues to point at the second manipulator.
4. 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).

5. 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).

6. 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).