- Start MotionSampler by typing: ms3 or
by click-dragging down the Utilities menu in Alias until you get
to MotionSampler and then releasing the mouse button.
A red outline appears attached to the cursor.
- Drag the outline to the where you want MotionSampler to be. Click the
left mouse button. The MotionSampler window appears.
- Select File
Retrieve Model. A File Browser appears.
- Use the File Browser to retrieve the Tutorial1.wire file.
This file contains a sphere and a cube. These objects are tessellated into
polygons and displayed.
- Select Scene
View Scene or click on the following button to switch to a single
view:

Adjusting the View
- Try to make the view similar to the view below so that it is not as
orthogonal as the original view. To change the view, use either:
- the row of View Control buttons adjacent to the Camera menu
above the View/Edit Area for Tumble, Dolly, and Track as follows:

For more information about the View Controls,
see the View Controls section earlier in this chapter.
- the mouse by click-dragging in the viewing window. Use the first mouse
button for Tumble, second for Dolly, and third for Track.

- Select Display
Grid Options.... The following window opens:

- Click the button beside Solid to create a solid, tiled floor
and then click the Done button.
- Use the Floor button to move the floor up until it just meets
the bottom of the sphere and cube. The Floor
button appears as follows:

You can tell when you have the floor in the right
position because it will intersect the cube and sphere as follows:

Creating the Pipeline
This section of the tutorial shows you how to create
a pipeline to control the X and Z position of the sphere with the mouse.
A DAG sink, a Mouse source, a FloatJoin (to join three
float parameters into a vector) and a couple of Offset modules are
needed to scale the mouse coordinates correctly.
- Click the Pipeline button, which appears as follows:

The MotionSampler window changes to appear as follows:

- Double-click the DAG module under the Sink Modules list
at the bottom left of the Plug-in Module Library. A
module tile called DAG appears in the upper left corner of the View/Edit
area.
- Double-click the following modules to select them:
- two Offset filters from the Filter Modules list
- one FloatJoin filter from the Filter Modules list
- the Mouse module from the Source Modules list.
Make sure you select the modules from their correct
list.
As you double-click each module, it is displayed
in the View/Edit area. The module tiles pile one on top of the other in
the upper left corner of the window so that they appear as follows:

- Move each tile by clicking with the cursor on the module's name label
and dragging it to arrange the modules as shown below:

Editing the DAG Sink Module
The DAG sink module must have a related wire
file. The sink module's name should be matched with the name of a dag node.
- Click the down arrow on the DAG module to display the menu as
follows:

- Drag down until Rename... is highlighted and release the mouse
button. The Rename Module window appears.

- Type sphere in the edit field to rename the sink module to the
name of the node in the wire file.
Connecting the Modules
To connect the modules to each other and form a pipeline:
- Click-drag from the X outlet of the Mouse module to the
F inlet of one of the Offset filters, and from the Y
outlet to the F inlet of the other Offset.
- Connect the F outlet of the first Offset filter to the
X inlet of the FloatJoin, and connect the other Offset
filter's F outlet to the Z inlet of the FloatJoin.
- Connect the X outlet of the FloatJoin filter to the T
(or translation) inlet of the DAG sphere sink. Your
pipeline should appear as follows:

Calibrating Mouse Motion
The next step is to scale the motion coming from
the Mouse source to match the wire file more appropriately.
The Mouse source reports actual cursor position,
so if you have a 1280x1024 monitor, these positions have a large range.
The Offset modules are used to change this scaling.
- Select Edit from the first Offset filter's menu. The
Module Text Editor appears displaying the Offset's parameters
as follows:

- Change the scaling parameter to 0.01. This defines a reasonable
range of motion without sending the sphere flying out of the view.

If you are having trouble generating this pipeline,
it has been stored as Tutorial1.pipe. You can load the stored pipeline
by selecting Pipeline
Retrieve Pipeline from the menu bar, and selecting Tutorial1.pipe
from the File Browser. Retrieving the stored pipeline also
clears out the pipeline you have been working on.
- Click the OK button to close the Module Text Editor and
apply the changes to the Offset module.
- Make the same changes to the other Offset module.
Sampling Motion
- Return to the single view window by clicking on the single view icon
on the left side above the viewing area.
- Click the Sample button to place the system in live standby
mode.

- Move the mouse around and observe the sphere. As
you move the mouse and the position of the sphere changes, you may need
to zoom your view out to see it.
- Exit sampling mode by pressing the F1 key. Because
the mouse is defined as the motion capture device, it is inconvenient to
click the Sample button each time you want to enter or leave sampling.
The F1 key is the keyboard shortcut to
toggle sampling on and off.
- Use the view control buttons to change the view.
- Press the F1 key if you want to start sampling the mouse's motion
again.
Recording and Playing Back Motion Data - Using the Shuttle Bank
You have now done live motion sampling with MotionSampler.
Next, you will record data and see how it can be played back, and how animation
can be overlaid with previous work.
The Shuttle Bank is like a VCR, with controls
for forward, reverse, and stop. The knob in the slider above the VCR controls
can be dragged.

As you play forward or reverse, or as you drag
the knob, the time displayed in the Current box changes. MotionSampler's
current time settings are contained in the Shuttle Bank.
- Stop Sample mode either by clicking the Sample button,
or by pressing the F1 key.
- Move to the beginning of the frame range by click-dragging the slider,
by clicking in the Current edit field and entering 0, or
by clicking the following button:

- Press the F1 key return to Sample mode.
- Press the F2 key to place the system in Record mode.
The shuttle begins to move forward.
- Move the mouse around for a second or two.
- Press the F2 key again to stop Record mode.
- Press F1 to stop Sample mode.
- Return the shuttle back to frame 0 as in step 2 above.
- Click the following button on the Shuttle Bank:

The animation of the previous movements of the mouse
are replayed.
- Press the following button to stop the playback:

You can adjust the view with the view controls
while playing back the animation.
- Select Playback
Use Min/Max to set the shuttle's Start and End frames
to be the duration of the animation.
- Select Oscillate in the Play menu next to the shuttle
controls as follows:

Now when you start playback, the animation replays
continuously, first forward, then in reverse, and so on.
You can also select Loop to replay the
animation continuously forward.
Recording onto Existing Animations
You can record additional motion on top of this original
animation.
- Stop the playback and click the following button to switch back to
the Pipeline Editor:

- Select Rename from the DAG module's menu.
- Type cube instead of sphere to move the cube rather than
the sphere.
- Return to View mode by clicking the following button:

- Return to Sample mode by pressing F1. Now the motion
of the mouse moves the cube instead of the sphere.
- Press the F1 key to stop Sample mode.
- Reset the shuttle to frame zero.
- Press the F1 key to start Sample mode.
- Press the F2 key to start Record mode.
- Move the mouse around. The sphere motion previously
captured moves the sphere at the same time as you are moving the cube.
- Exit Record mode by pressing the F2 key and exit Sample
mode by pressing the F1 key.
- Reset the shuttle to frame 0 and play back the result. Both the motion
on the cube and sphere play back, with motion recorded separately on each.