2009

Table Of Contents
2 Duplicate the barrel by typing the following:
duplicate;
You have a duplicate of the first barrel, and it is the currently selected
object.
3 Align the duplicate barrel with the original by moving the duplicate in
Z by a value equal to its diameter by typing the following:
move -r 0 0 $diameter_barrel;
A duplicate of the original barrel is created and aligned to the first barrel.
4 Make another copy of the barrel by typing the following:
duplicate;
move -r 0 0 $diameter_barrel;
The current selection switches to the newly created geometry.
5 Duplicate the currently selected barrel and align the duplicate with the
previously created barrel.
duplicate;
move -r 0 0 $diameter_barrel;
When duplicating objects, the selection always switches to the duplicate.
Each barrel is spaced the same relative to its neighbors.
The first row of barrels is complete.
Stacking the row of barrels
Stack the barrels in a triangular arrangement by duplicating the existing row
and offsetting the row in both X and Y.
618 | Chapter 13 Scripting in Maya