Chapter 3 · Modifier Reference

3.19Tnpix Motion Brush

The Tnpix Motion Brush modifier sculpts a simulated animation. In layers, you brush the cloth on any frame: pull it, smooth it, push folds in or out. Every brushed frame becomes a key of its layer and comes in and goes out over the frames around it, so a fix or a stylized shape plays in time with the cloth. Nothing is simulated again. It goes above the Solver, and above the Cache when there is one; it also works on any other animated mesh, such as a skinned mesh, an Alembic mesh or a Point Cache.

Location: Modify panel ▸ Modifier List ▸ Tnpix Motion Brush (above the Solver and the Cache)

To fix a frame of a simulation:

  1. Add Tnpix Motion Brush above the Tnpix Solver, and above the Tnpix Cache when there is one.
  2. Click Add Layer. The new layer is selected, its Weight is 1 and its Edit is on.
  3. Go to the frame to fix and brush the cloth in the viewport. Grab drags the surface with the mouse, Relax smooths it, Sculpt pushes it out along the surface (hold Ctrl to push in) and Erase takes the layer's work away.
  4. The frame is now a key of the layer. Scrub the time slider: the brushed shape comes in over the Ease in frames before the key and goes out over the Ease out frames after it.
  5. Click Edit again to stop brushing.

Layers, keys and sculpts

A layer holds brushed frames. Its curve is its Weight: an ordinary 3ds Max animated value, shown in the Curve Editor and the Dope Sheet under the layer's name, and keyable with Auto Key or the layer's K box. The time slider shows the selected layer's keys; the filter that does it is listed in the time slider's own Filter menu as Tnpix Motion Brush: the selected layer's keys.

  • A brushed frame is a key of 1 on the Weight. A sculpt is the brushed frames that lie between two 0 keys of that curve. Brushing again on a brushed frame adds to it.
  • A frame brushed outside the layer's keys starts a new sculpt. Before the first key it gets 1 on the frame and a 0 the Ease in frames before it; after the last key it gets 1 and a 0 the Ease out frames after it. The old keys stay where they are, and a new sculpt starts from nothing: only what you brush on its frame.
  • A 0 between two sculpts keeps them apart. Neither shows on the other side of it, and they never blend through it.
  • A frame brushed between a sculpt's two 0 keys joins that sculpt. Its brushed frames blend smoothly from one to the next, so a fold can change shape or travel over time. When the new frame becomes the sculpt's first or last, that side's 0 moves to keep the Ease, unless the next sculpt uses the same 0.
  • When the gap to the old keys is longer than the Ease, the new sculpt still gets its own 0 the Ease away, and the curve stays 0 between the two 0 keys. A frame brushed exactly on a 0 becomes 1 there and gets a 0 halfway to the brushed frame next to it (at most the Ease), so the two stay apart.
  • A 0 you key by hand refuses the brush on its frame: the status line says the Weight is 0 there. A key you move or change in the Curve Editor is never moved by the brush again.
  • Several layers add. A layer that is off, or at Weight 0 on a frame, moves nothing there.

For example, with Ease in and Ease out at 10, brushing frame 44, then 24, then 14 gives the curve 0 on 4, 1 on 14, 0 on 19, 1 on 24, 0 on 34, 1 on 44, 0 on 54: three sculpts that never blend into each other.

Interface

Tnpix Motion Brush rollout

Layers group
Layer list
One row per layer, top first. Click the dot to switch the layer on or off, the K box to key its Weight on this frame, and Edit to brush into it: one layer is in Edit at a time, and a layer in Edit is switched on. Click a row to select the layer; double-click it to rename it.
Add Layer
A new layer at Weight 1, selected, with its Edit on: brush on a frame to make its first key.
Duplicate
A copy of the selected layer, with the same keys and the same Weight curve.
Delete
Deletes the selected layer. One Undo brings it back.
Name
The selected layer's name, also its name in the Curve Editor.
Weight Default 1.0
The selected layer's Weight on this frame: 0 is off, 1 is as brushed. Range 0 to 1. Animatable.
Brush group
Grab / Relax / Sculpt / Erase Default Grab
Grab drags the surface under the brush with the mouse, softer towards the brush's edge; the cloth sits where the mouse is. Relax smooths crumples, zigzags and the shake of a low-substep simulation towards the neighbouring points; an open edge is smoothed along itself. Sculpt pushes the surface out along the brushed area's normal; hold Ctrl to push in. Erase takes the selected layer's work on this frame away under the brush, back to the animation below. Hold Shift with any brush to relax for as long as Shift is held; a Grab started with Shift held is a Relax stroke.
Grab style Default Smooth
How Grab moves the area. Smooth moves it like a soft curve: it stretches or squeezes with the drag and makes no wrinkles. Cloth moves it like fabric: the cloth keeps its length, so a push along the surface gathers the cloth ahead of the brush into wrinkles, and a pull out of the surface draws the cloth around after it. The wrinkles become part of the frame's key. Available for Grab only.
Picks Default Around the point
Which points a brush takes and how its work fades - for every brush, Grab, Relax, Sculpt and Erase. Around the point: the points within the radius of the point pressed on - a ball around it, so a layer of cloth lying close above or below is taken too - the work fading in 3D. On the surface: the points the cloth reaches from the point pressed on, walking along the cloth, within the radius - the work fading with that distance along the cloth - so a layer folded over or under the one brushed, or the far side of a fold, is not taken however near it lies; where the cloth turns back on itself at a fold, the other layer is taken only as far as the radius reaches round the fold. With Mirror the mirrored side picks the same way from its own point. On screen: what is seen inside the brush's circle on the screen is brushed, so the cloth behind, a layer under it or the far side of a fold stays as it is (layers lying almost on each other are brushed together), and the work fades with the distance from the cursor on the screen, by the Falloff list. With Grab style Cloth the cloth out of sight keeps still and moves only as far as its edges to what moves pull it; with Mirror the mirrored side takes the mirror image of what is brushed. With Grab, the point pressed on stays under the cursor, unless Update on Mouse Up is on in Brush Options.
Radius / Strength
The brush's radius in scene units and how much one dab does, 0 to 1. They are 3ds Max's own brush settings, so Brush Options shows the same numbers. Grab follows the mouse whatever the Strength.
Pen pressure
What a pen's pressure changes: Strength, the dab's strength; Size, the brush's size; or Strength and size, between the Min and Max of 3ds Max's Brush Options. It is 3ds Max's own brush setting, so Brush Options shows the same. Grab takes it as the button goes down: the size of the area it grabs.
Falloff Default Smooth / ...
How the brush softens towards its edge: Smooth, Linear, Sharp, Flat or Curve. Curve follows the falloff curve drawn in 3ds Max's Brush Options; the ... button opens Brush Options. The curve is read when a stroke starts.
Mirror Default Off
Brushes the mirror image too, across the object's own X, Y or Z axis through its pivot.
Follows the surface Default on
On, what you brush is kept relative to the mesh's own surface, so a fold you add rides the garment, or the skin, as it moves and turns. It turns with the cloth around each point, over about the brush's size: where the cloth crumples or tears, the brushed area stays together. Off, it is kept in the object's space.
Time (the selected layer) group
Ease in (frames) Default 10 / Ease out (frames) Default 10
How many frames a new sculpt takes to come in before its brushed frame and to go out after it. 0 keeps it on from the start, or to the end. Changing them moves each sculpt's own 0 keys; a 0 two sculpts share stays.
< Key / Key >
Moves the time slider to the selected layer's previous or next brushed frame.
Delete Key
Deletes the selected layer's brushed frame at the current frame. A 0 key that no sculpt uses any more goes with it, and a 0 that only one sculpt still uses goes back to that sculpt's Ease.
Display group
Show what the selected layer moved (colour) Default on
Dots on the points the selected layer moved on this frame, warm where they moved most.

The line at the bottom of the rollout says what the brush is doing, and why a stroke was not taken.

How it works with the rest of the scene

  • It never simulates. Every change shows at once. The animation below the modifier is not touched, and a Tnpix Cache below it plays as before.
  • Its place in the stack. Above the Solver it works on the simulated result. Below the Solver it would change what the Solver simulates, and the status line says so.
  • Undo and redo. Each stroke, each key and each layer change is one step in 3ds Max's own history.
  • Saved with the scene. The layers and their keys are saved in the scene file. They apply in a session with no viewport, such as a render on a farm, exactly as in the viewport; the brush itself has nothing to simulate.
  • Any animated mesh. A Tnpix cloth above its Solver or Cache, a skinned mesh, an Alembic mesh or a Point Cache: the brush needs the same points on every frame. A mesh whose point count changes, such as a garment that tears or a mesh under a Tessellate, keeps its layers but does not apply them, and the status line says so.
  • The TenPix Graph shows the Motion Brush with its brush settings, like every Tnpix modifier.