Graphics Reference
In-Depth Information
First, open your script editor and select the CV point (pictured in the bottom-left
section of the preceding screenshot). Now, enter the following code into your script
editor and run it (click on the play button in the script editor):
string $selection[] = `ls -fl -sl`;
for( $vertex in $selection )
{
float $pos[] = `xform -q -ws -t $vertex`;
xform -ws -t 0 $pos[1] $pos[2] $vertex;
}
This process should be run for both the starting and ending point of the curve.
This will set the
x
coordinate of the point to
0
and solve our revolving axis problem.
Finally, let's revolve (lathe) our wine bottle. In Maya, this tool can be located by
navigating to
Surfaces
|
Revolve
. We want our pivot for the lathe process to be
at the center of our world (
0,0,0
), have 32 sides, have output as polygons, and all
should happen on the
y
axis. The complete settings are visible on the bottom-right
section of the preceding screenshot. Bingo! You have a classic wine bottle (shown in
the following screenshot). Congratulations! You are now a lathe master. Save your
wine bottle and let's move on.
The completed wine bottle