The Motion Mixer is a completely separate interface, shown in Figure 34.3. This interface is accessed using the Graph Editors Motion Mixer menu command. The same interface also is opened using the Mixer button found in the Biped Apps rollout of the Motion panel when a biped is selected. If the Mixer button is used, then the Motion Mixer opens with the biped already added as a track to the mixer interface.
Figure 34.3: The Motion Mixer interface shows each loaded animation on a separate track.
Along the top edge of the Motion Mixer interface are several menus and a row of toolbar buttons. Many of these buttons perform the same commands that are found in the menus. You also can access these commands using the right-click pop-up menus. The toolbar buttons are described in Table 34.1.
Toolbar Button | Name | Description |
---|---|---|
| Add Max Objects | Opens a select dialog box listing all the Max objects in the current scene. Selected objects are added as tracks to the Motion Mixer. |
| Add Bipeds | Opens a select dialog box listing all the biped objects in the current scene. Selected objects are added as tracks to the Motion Mixer. |
| Delete | Deletes the selected track from the interface. |
| Select | Enables select mode for selecting tracks. Multiple tracks can be selected at once. |
| Move Clips | Allows the movement of tracks and clips within tracks. Holding down the Shift key clones the selection. |
| Slide Clips | Allows the horizontal movement of a clip within its own track. |
| Offset and Frame fields | Displays the number of frames from its original position that a clip has moved and the current frame number. |
| Trim Clips | Displays the original clip as a gray bar under the actual clipped track. Clips are trimmed by dragging on either end of a clip. |
| Editable Time Warps | Displays any Time Warp markers added to a clip. |
| Draggable Tracks | Enables clips to be dragged between tracks. |
| Lock Transitions | Locks the transition track so it doesn't change when the clips are edited. |
| Set Range | Sets the range for the selected track to equal the entire range. |
| Pan | Pans within the interface. |
| Zoom Extents | Zooms to show the full range of all tracks. |
| Zoom | Zooms in on the tracks. |
| Zoom Region | Zooms in on the region selected by dragging a rectangular area with the cursor. |
| Snap Frames | Causes all clips to snap to the nearest frame. |
| Snap Clips | Causes clips on the same track to be joined end to end when moved. |
| Preferences | Opens the Motion Mixer preferences dialog box. |
| Reservoir | Opens the Reservoir dialog box that lists available animation clips. |
| Horizontal, Vertical, Horizontal Vertical | Makes the horizontal and vertical editing of weight possible. |
| Weight Mode | Makes the editing of Weight curves accessible. |
To the left of the interface, each track is listed under its controlling object or biped name. The small m button is used to mute a track, which removes its affect from the interface and the small s button is the solo button, which displays only the animation clip on that track. The right end of the interface shows the weight value for each track. The small w button lets you edit the weight values for the selected track, and the small b button lets you edit the weight of the balance track.
If the Mixer button in the Biped Apps rollout is used to open the Motion Mixer, then the selected biped is automatically added as a track to the mixer interface. After the Motion Mixer is open, additional biped tracks may be added using the Add Biped button, which opens a dialog box listing the available bipeds in the scene.
Biped tracks that are added to the Motion Mixer include an additional balance track that isn't available for non-biped tracks.
Tip | To see the mixed motion applied to the selected biped, click the Mixer Mode button in the Biped rollout. |
Non-biped tracks are added using the Add Max Objects button on the toolbar. This button also opens a dialog box listing the available scene objects.
Tip | Biped tracks are dark yellow and non-biped tracks are light blue, but the track colors can be changed using the dialog box opened with the Mix Track Color menu command. |
Additional tracks can be added to the interface using the Tracks Add Layer Track Above or the Tracks Add Layer Track Below menu commands. Transition tracks also are added to the interface using the Tracks menu. Transition tracks are taller than layer tracks and let you define the transition between overlapping clips.
Tip | All animation clips that are added to the Motion Mixer during a session are automatically copied to the Reservoir, which is a separate dialog box, like a library, that lets you quickly access various clips. The Reservoir even displays previews of any .bip files that are loaded. |
Tracks can be trimmed easily from their original length by dragging on either end of the clip. The cursor changes when the cursor is positioned over the end of a clip. To see the clip's original size, click the Trim Clips button. The original clip size is shown in gray.
Each track is associated with a weight value. The weight values define the influence of the track when two or more clips overlap. Weight values can range between 1.0 for full influence and 0.0 for no influence. If two overlapping clips both have a weight value of 1.0, then the topmost clip is used.
To edit a track weight, click the small w button to the right of the track. This enables the weight value, which appears as a red line for the track. If you position the cursor over the weight line, the cursor changes and lets you add an edit point if you click. This edit point may be selected and moved horizontally, vertically, or both horizontally and vertically depending on which button is selected on the right end of the toolbar. The weight value for the selected weight point is displayed in the value field to the right of the track. Several weight points may be selected and edited simultaneously.
A Time Warp is just what it sounds like: a way to alter time or speed up and slow down animation clips. To add a Time Warp, select a clip and choose the Clips Add Time Warp. The cursor changes and lets you click the track to place the location of the Time Warp, which appears as a thin, vertical white line.
After a Time Warp has been added to a clip, you can enable Time Warp editing mode by clicking the Editable Time Warp button in the toolbar. A dashed line is overlaid on the clip. This dashed line gives you an idea of how the clip's time is being altered. Then click and drag the top of the Time Warp marker to crunch time in one direction, or click and drag the bottom half of the Time Warp marker to crunch time in another direction. The dashed lines show the relative effect. Figure 34.4 shows two layer tracks separated by a transition track. The top track shows the default spacing for a Time Warp, and the bottom track shows time compressed to the right.
Figure 34.4: Time Warps can be added to clips to compress time.
After the mixed animation is complete, you can create a new track that includes all the mixed animation clips called a Mixdown using the Mix Compute Mixdown menu command. The Mixdown shows up as a new track and can be copied to a biped using the Mix Copy Mixdown to Biped menu command.
All the clips loaded and edited in the Motion Mixer can be saved to an external file as a .mix file using the Mix Save Mix File and reloaded into the Motion Mixer using the Mix Load Mix File menu command.
Mixing biped animations together can create some really interesting effects. For example, try mixing a back flip with a front flip, and you'll get a really dizzy biped, but for more common motions-such as a character transitioning from a walking animation to a fighting stance-the Motion Mixer can be extremely helpful and save you lots of time.
To mix two animation clips into a single motion, follow these steps:
Click the Systems icon in the Create panel, and select the Biped button. Then drag in the Left viewport to create a biped.
With the biped selected, open the Motion panel and click the Mixer button in the Biped Apps rollout to open the Motion Mixer. Notice that the Mixer Mode button in the Biped rollout is activated automatically.
Click the first biped track in the Motion Mixer to select it, and choose the Tracks New Clips From Files menu command. In the Open dialog box that appears, locate and select the Walking.bip file from the DVD. The animation clip is added to the Motion Mixer and is 78 frames long.
With the new clip selected, choose the Tracks Add Layer Track Below menu command to create a new layer track.
Select the new layer track, and choose the Tracks New Clips From Files menu command again. In the Open dialog box that appears, locate and select the Fighting stance.bip file from the DVD. This clip is only 10 frames long.
Select the Walking track, and choose the Tracks Convert to Transition Track menu command. Then select and drag the Fighting stance clip to the bottom level of the transition track at frame 79. A transition between the two clips is added automatically, as shown in Figure 34.5.
Figure 34.5: Two biped clips have been combined to produce a new animation.
Drag the Time Slider to see the resulting mixed animation. Then select the Biped root track, and choose the Mix Compute Mixdown menu command followed by the Mix Copy Mixdown to Biped menu command.