Creating Random Motion
 
 
 

You can randomly traverse clips in a motion flow graph to animate one or more bipeds using controls in the Create Random Motion dialog. You set parameters for random motion in the Motion Flow Graph, in the clip and transition dialogs, as well as in the Create Random Motion dialog.

You create random motion by first adding clips to the Motion Flow Graph and adding transitions between the clips. Clips and transitions are then given percentages, which are used to create random motion for one or more bipeds. You can manually control the “weighting” for a possible start clip, transitions, and frame range. This allows you to animate multiple bipeds in a crowd scene for example. A different script is created for each biped.

NoteIf you want to create random motion for multiple bipeds, they must be sharing a motion flow.

Details of Random Motions

When choreographing a random motion for your biped, the default “weighting” for all clips and transitions is set to 100. This ensures that all clips and transitions have an equal chance of being chosen. You can adjust the weighting of transitions in the Motion Flow Graph or Transition Editor to give transitions a higher probability of being selected. You can also set a specific start clip for your biped to use while the remainder of the clips in the script are randomly chosen from the Motion Flow Graph.

To customize transition “weighting” and setting a start clip:

  1. Select a biped. On the Biped rollout, turn on (Motion Flow Mode).
  2. On the Motion Flow rollout, click (Show Graph).

    This displays the Motion Flow Graph.

  3. On the Motion Flow rollout, click (Load File)

    3ds Max opens a file dialog.

  4. Choose an MFE file from the folder where your Motion Flow Editor files are stored.

    The clips and transitions appear in the Motion Flow Graph. Each transition displays its “weighting” value, 100 by default.

  5. On the Motion Flow Graph toolbar, click (Select Clip/Transition), and right-click a transition that you want to adjust.

    3ds Max opens the Transition Editor dialog.

  6. Adjust the Probability setting to give the transition a higher or lower probability of being randomly chosen for the motion flow script.
    NoteThe Probability range is 0 to 100.
  7. On the Motion Flow Graph toolbar, click (Select Random Start Clips).
  8. Select the clip you want used as the start clip.

    The clip turns purple and is assigned a weighting of 100. The selected clip will be used first by any biped using the random motion script.

  9. In the Scripts section on the Motion Flow rollout, click (Create Random Motion).
  10. On the Create Random Motion dialog, set a value for Minimum Animation Length.

    This should be long enough to include the clips you want in the animation.

  11. Click Create.

    A random script is created based on clips in the Motion Flow Graph and the Minimum Animation Length.

  12. Click (Play Animation) or scrub the time slider to view the transition.

Procedures

To create a random script for one biped:

  1. Select a biped. On the Biped rollout, turn on (Motion Flow Mode).
  2. On the Motion Flow rollout, click (Show Graph).

    This displays the Motion Flow Graph.

  3. On the Motion Flow Graph toolbar, click (Create Multiple Clips).

    3ds Max opens a file dialog, where you can choose the location of your BIP files.

  4. After adding several clips and transitions, click (Select Clip/Transition) and select all the clips.
  5. On the Motion Flow Graph, click (Create All Transitions). Click Yes when asked if you want to create a transition from each selected clip to itself.
  6. On the Motion Flow Graph toolbar, click (Select Random Start Clips).

    All the transitions linking clips are weighted at 100, meaning all the transitions have a even chance of starting first.

  7. Region-select all the clips in the Motion Flow Graph.

    The clips all turn purple and each is assigned a weighting of 100. All the clips have an even chance of starting first.

  8. In the Motion Flow rollout Scripts group, click (Create Random Motion).
  9. On the Create Random Motion dialog, set a value for Minimum Animation Length.

    This should be long enough to include the clips you want in the animation.

  10. Click Create.

    3ds Max creates a random script based on clips in the Motion Flow Graph. You can vary clip and transition percentages in the clip dialog or Transition Editor to favor a clip or transition if you like.

  11. Click (Play Animation) or scrub the time slider to view the random script.