Chapter 4 · The TenPix Toolbar

4.8Batch Sim

Runs the shots of a scene one after another and saves each garment's cache, shot by shot: a walk, a sit and a run from one animation, each with its own frames and its own colliders, simulated and cached while you are away.

Garments: Solver of / Pick
Pick one garment: every garment on its Tnpix Solver is simulated together, and the line below names them.
Shots: Add / Edit / Remove
The list of shots. Each shot has a name, its first and last frame, and the Tnpix Collision and Tnpix Forces modifiers that are on in it; the ones another shot names are off in this one, and any other modifier is left as it is.
Output: Folder / ...
Where the caches go: <Folder>\<Shot>\<Garment>_<Shot>, with a log of the run beside them.
Tnpix Cache (.tnc) / Alembic (.abc)
The format the caches are saved in.
Write velocities (Alembic, for motion blur) Default on
Writes each point's velocity into an Alembic file, so a renderer can blur from a single sample.
Preview per shot Default off
Makes a preview of each shot with 3ds Max's Make Preview.
Test frames Default 0
Runs only the first this many frames of each shot, into <Folder>\_TEST, to check a set-up quickly. 0 runs the whole shots.
Check
Shows what a run would do and anything that would stop it, changing nothing.
Run selected
Runs the highlighted shots. Esc stops the shot running; that shot is not saved.

For each shot the timeline is set to the shot (the simulation starts at its first frame), only that shot's collision and forces are on, the simulation is reset, every garment of the Solver is simulated frame by frame, and each garment's cache is saved from the frames in memory, with no second simulation. Every garment keeps its own Tnpix Cache: one is added to a garment that has none, and one shared by several garments becomes one per garment. After the run each plays the last shot saved. The timeline, the time slider and the shots' modifiers are put back as they were, and nothing is saved to the scene file. The Cache Manager loads any shot back: highlight the garments, Load, and pick the shot's folder.

The same run is one MAXScript command, for a farm or a pipeline; see the MAXScript Guide.