Select a biped > Motion panel > General rollout > Motion Flow Mode > Motion Flow Script rollout
Create and delete scripts, name scripts, edit transitions, edit clips and position the entire animation using tools on the Motion Flow Script rollout. Create random motion for one or more bipeds using controls in this rollout. The Motion Flow Script rollout on the Motion panel is only available when Motion Flow mode is active.
A Script is a list of clips (.bip files) that you constructed and are executed as you designed to animate a character. To create a script, add clips to the Motion Flow Graph, then select Define Script on the Motion Flow Script rollout and click a sequence of clips in the Motion Flow Graph window. Default transitions are assigned if no transitions exist between the clips. The clip names and starting frame numbers display in the list on the Motion Flow Script rollout.
Different scripts vary the order of the clips found in the Motion Flow Graph. Scripts are run in a top-down order to animate the character. Click Play to view script motion on the biped.
Tip: As the length of a script varies, use ALT+R to set the Active Time in 3DS MAX to the length of the script. Turn on the Plug-in Keyboard Shortcut Toggle near the 3DS MAX status line to enable character studio shortcuts.
Note: Use Save Segment on the General rollout to output a script as one long .bip file. You can also create a unified motion that will make the script motion available when you exit motion flow mode.
By default, when a script is created, Minimum Motion Loss is used to find likely start frames for the source and destination clips.
Editing transitions using the Transition Editor allows you to determine where a transition occurs in the source and destination clip. Transition duration and the orientation of the destination clip can also be adjusted in the Transition Editor.
The Create Random Motion command traverses clips in the Motion Flow Graph based on transition percentages. Transitions are given percentages and the software creates random scripts based on the transition percentages. This is a quick way to create crowd scenes or to try out different scripts on a single biped. For example, if five clips are present in the Motion Flow Graph and transitions exist between all the clips and each clip has a percentage or probability of being used, you can use Create Random Motion to create a script that is comprised of the five clips that are selected at random.
Use the Position, Rotation, and Start Frame controls to position the entire animation. If you are editing the script for a character in a scene with other objects or characters, use these controls to position the animation relative to the rest of the scene.
To create a script
Add clips to the Motion Flow Graph window and associate these clips to stored .bip files.
On the Motion Flow Script rollout, click Define Script, and then select a sequence of clips in the Motion Flow Graph.
The selected clips appear in the list on the Motion Flow Script rollout.
Edit Transitions by selecting a clip in the list of the Motion Flow Script rollout and click Edit Transition. Change parameters in the Transition Editor.
Click Play to view the script
Save a .mfe file to work on later.
Use Save Segment on the General rollout to output the script as a .bip file.
Click Create Unified Motion to make the motion available when you exit Motion Flow mode.
To move footsteps to line up clips
If you find that one clips z position is higher than another clips z position and there is a jump during the transition, you can simply change one clips z position by moving all of its footsteps along the z-axis.
Go into footstep mode, select all of the footsteps and drag them along the z-axis to match them up with the other clip.
Define Script: Display the Motion Flow Script dialog (no dialog displays if there are no scripts, in this case simply select clips in the Motion Flow Graph).
The Motion Flow Script dialog has the following options:
Create New Script: Names a new script. Select clips in Motion Flow Graph to create the clip list for the new script.
Redefine Script: Keeps the script name and removes clips in the list. Select clips in Motion Flow Graph to create a new clip list.
Insert Above Selected Clip item: Inserts a clip above the selected clip in the list.
First select a clip in the list, choose Insert Above Selected Clip item, and then click a clip in the Motion Flow Graph.
Insert Below Selected Clip item: Inserts a clip below the selected clip in the list.
Append to End of Script: Appends a clip to the end of the clip list.
Create Random Motion: Displays the Create Random Motion dialog.
Controls in the Create Random Motion dialog allow you to create random scripts to animate one or more bipeds. Random motion on multiple bipeds can be used to create a crowd scene.
Delete Script: Deletes the current script, displays the previous script if one is present.
Create Unified Motion: Converts a script into a Freeform unified motion. The created motion replaces animation present when Motion Flow Mode is turned off.
Edit Clip: Displays the Clip Properties dialog. Change the start and end frame for the current clip or replace the current clip with another one. You can also set the Random Start Probability here. Random Start Probability is used when multiple clips are selected as possible start clips when you generate a random motion flow.
The clip name in the script list and the icon in the graph window are updated if the clip is replaced.
Edit Transition: Displays the Transition Editor for the selected clip.
Edit the transition for the selected clip and the clip following it. By default, when a script is created, Minimum Motion Loss is used to find start frames for the source and destination clips. Use Edit Transition to select your own start frames or to try out optimized transitions.
Note: Right-clicking a transition "arrow" in the Motion Flow Graph also displays the Transition Editor, but it will only give you the basic transition editing tools. To edit the transition's Source Clip-Frame Start and the Destination Clip use the Edit Transition button.
Cut: Removes the selected clip from the script list and creates a default transition to the next clip on the list.
Copy: Copy the selected clip to the clipboard.
Paste: Paste a clip from the clipboard.
Clip Mode: Edit biped footsteps and limbs for the selected clip. Use Set Key on the Keyframing rollout to set biped limb keys.
Go to Frame: Make the first frame of the selected clip the current frame.
Move the Entire Animation
Start Frame: Set the start frame for the first clip in the script.
Start Position X: Move the entire script along a world X-axis.
Start Position Y: Move the entire script along a world Y-axis.
Start Position Z: Move the entire script along a world Z-axis.
Start Rotation: Rotate the entire script around the world Z-axis.
All transformation and rotation is based on the original position.