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

# Transforming Objects and Components in Maya 8

• Print
This chapter is from the book

## Mirroring and Instancing Objects

In addition to translating objects, you can use the Duplicate Special options to create a mirror image of an object (that is, a reversed copy of the original). Body parts or characters make good candidates for mirroring because many characters are nearly symmetrical. This allows you to model one half of a character and mirror it, saving yourself almost half the work (Figure 4.52).

Additionally, you can create instances of objects—duplicates that retain a connection to the shape of the original (Figure 4.53). The beauty of this technique is that you can then edit any of the objects and have each of the rest follow those edits interactively. For example, if you're creating a building with multiple identical pillars, you can create one pillar and then create a number of instances of it to get the additional pillars. If you later decide to change the look of the pillars, all you have to do is edit one, and the rest are updated automatically.

### Mirroring

Mirroring an object produces a precise reverse copy of the object. This technique is great for symmetrical objects, such as creating one side of a face and then mirroring the face across an axis to complete it (Figure 4.54). The pivot point is used as the mirror axis, which means that the farther the pivot point is from the object, the farther the mirrored copy will be from the original.

You can also use mirroring to place objects an equal distance away from an axis line, creating a mirrored copy that's perfectly placed (Figure 4.55).

In the following task, you'll mirror a sphere across an axis, as if to create two eyes.

#### To mirror an object

1. Create a NURBS primitive sphere, or select another object to mirror.
2. Type -2 in the Translate X field in the Channel Box (Figure 4.56). This setting moves the object two units down the negative x axis.
3. Press or click the Move tool icon in the toolbar.
4. Press on the keyboard to go into pivot point mode.
5. Holding down , move the pivot point to the origin (Figure 4.57). snaps to the grid, which ensures that the pivot point is precisely at the origin.
6. Press to get out of pivot-point edit mode.
7. From the Edit menu, select the box beside Duplicate Special.

The Duplicate Special Options window opens.

8. Select Edit > Reset Settings in the Duplicate Special Options window to reset the settings, and then set the Scale X field to –1.
9. Click Duplicate Special.

A mirrored copy is duplicated an equal distance from the pivot point (Figure 4.58).

### Instancing

Instancing is a great way to save time, both in modeling and in rendering. An instanced object follows the edits of the original, making instancing ideal for any object that will have identical copies anywhere else in the scene (Figure 4.60). Instanced objects are loaded into memory only once, saving render time. Very large scenes can be populated by instanced objects and stay workable. You can still scale, rotate, and move the objects independently once they've been instanced.

#### To make an instance of an object

1. Select an object by clicking it.
2. From the Edit menu, select the box next to Duplicate Special.

The Duplicate Special Options window opens.

3. Set the Translate X field to 2 and the rest of the Translate and Rotate fields to 0 (Figure 4.61). You add a translate here so the copy doesn't sit directly on top of the original.
4. For Geometry Type, select Instance (Figure 4.62).
5. Click Duplicate Special.

The duplicate is now an instance, or virtual copy, of the original.

6. With one of the objects selected, press to go into component-selection mode.
7. Marquee-select across the top third of the object to select one of its components (Figure 4.63).
8. Press , and translate the components in any direction.

Note that the other object follows the translation of the selected surface (Figure 4.64).

### Duplicating Input Connections

Often, you'll want the construction history to remain attached to an object when you create a copy of it. This produces an effect like instancing but allows you to alter the objects independently as well. You can do this by selecting the "Duplicate input connections" check box in the Duplicate Special Options window. The objects then share the same Inputs node, and both the original and the duplicates are changed by it.

#### To duplicate an object with its input connections

1. Select an object that has input connections attached to it—a primitive sphere, for example (Figure 4.65).
2. From the Edit menu, select the box next to Duplicate Special.

The Duplicate Special Options window opens.

3. Select the "Duplicate input connections" check box (Figure 4.66). This option connects the duplicated object to the Inputs node of the original. Now, if you alter the Inputs node of one object, the duplicates are also affected.
4. Type the number of duplicates you want to produce in the "Number of copies" field.
5. Click Duplicate Special.

A copy of the object is made, and its connections are attached to it (Figure 4.67). The new object sits directly on top of the original.

6. Select the Move tool, and move the duplicated object away from the original.
7. In the Channel Box, select the End Sweep attribute name, and drag the middle mouse button in the View pane to confirm the connections.

The End Sweep is changed on both objects interactively (Figure 4.68).

8. Right-click a sphere, select CVs from the marking menu, and move a few around.

When you duplicate with input connections, you can make changes to the new copies without affecting the rest (Figure 4.69).