ANR Tools

ANR Mesh Warp

Warps the picture with pins you place in the Viewer or bring in from a tracker: pose, bend and morph an object over time while the mesh keeps it in shape.

  • Comp
  • Trackers or Comp & Depth pack
  • 4 inputs
  • 42 controls

Overview

ANR Mesh Warp lays a triangle mesh over the picture on the Reference Frame and warps it with pins. Click on the object in the Viewer to add a pin, then on any frame drag the pin, turn it with its rotation arm or scale it with its ring: the pin is keyed there, and the mesh bends round it while keeping each part as rigid as it can. On a cut-out (a plate with alpha, or a matte on Matte) the mesh wraps the object's outline; on a full plate it covers the whole frame.

Local Stiffness keeps the mesh rigid round a pin, so that area moves as one piece instead of stretching: every new pin starts at 1, fully rigid, and Influence Radius (px) sets how far that reaches. A Starch Pin (Keep Region Rigid) stiffens the mesh inside its radius without pulling it anywhere. Where the warp folds over itself, Overlap Depth decides which part passes in front.

Pins can also come from a tracker. Connect a Nuke Tracker, an ANR AI Point Tracker or an ANR AI Dense Point Tracker to Track and press Import Track Input: every point with a position on the Reference Frame becomes a pin keyed on the frames it was tracked, and the pin lets go where the tracker hid its point. Export to Mesh Warp on the two AI point trackers does it in one press: it makes this node under the tracker, with the plate on Source, the tracker on Track, and the frame you are on as its Reference Frame.

Output shows the warped result, the rest or the deformed mesh drawn on the picture, or a map of the stiffness and overlap. Motion Blur blurs the moving pins along their path over the shutter.

Inputs

SourceMatteTrackMaskMesh WarpOutput
  1. Sourcerequired

    The plate or the cut-out to warp. Its alpha shapes the mesh unless a matte is connected to Matte; a picture with no alpha gets alpha 1.

  2. Matteoptional

    An alpha that shapes the mesh in place of the Source's own, read on the Reference Frame: for a Source with no alpha of its own, or a roto of one object in a full plate.

  3. Trackoptional

    A Nuke Tracker, an ANR AI Point Tracker or an ANR AI Dense Point Tracker whose points Import Track Input turns into pins. Only its tracking data is read, never its picture.

  4. Maskoptional

    Limits the warp: its alpha scales Mix pixel by pixel. Invert Mask flips it.

Output. The warped picture, or the view Output chooses. With an outline mesh, everything outside the warped object is black and transparent, unless Keep Unwarped Background Outside Matte is on; with a full-frame mesh, the plate shows outside it.

Quick start

  1. Add ANR Mesh Warp after the plate or the cut-out and connect it to Source. A new node takes the frame it is made on as its Reference Frame, and builds the mesh there.
  2. Keep the node's panel open: the pins and the mesh show in the Viewer only while it is. Click on the object to add pins at the joints and ends of what should move, and on parts that must stay put.
  3. Go to another frame and drag a pin to pose it. Drag the end of its rotation arm to turn it, or its ring to scale it. With Auto-Key Pin Animation on, every change is keyed.
  4. Click a pin to select it, or step through the pins with Prev Pin and Next Pin: the controls under Selected Pin show its values and keys.
  5. Scrub the shot. Where an area stretches too much, raise that pin's Local Stiffness or Influence Radius (px), or add a Starch Pin (Keep Region Rigid) there, chosen in New Pin Type.
  6. To follow a tracker instead, connect it to Track, set Reference Frame to a frame where its points sit on the object (Set Ref to Current Frame), and press Import Track Input.

The panel

The node's panel as Nuke shows it, with the values of a new node. Click any control to see what it does; tabs and sections work as in Nuke.

ANR_Mesh_Warp1
StatusRef F0 | Click on the object in the Viewer to add pins, or Import Track Input, then scrub and pose across frames.
Reference Frame0
Set Ref to Current FrameRebuild Mesh
Hold Source Picture at Ref Frame
Morph Amount1
Viewer Tool ModePose / Morph (Animate Pins Over Time)
New Pin TypePuppet Pin (Pos + Rotate + Scale)
Auto-Key Pin Animation
Add PinPrev PinNext PinReset Pin PoseReset All PoseDelete PinClear All
Import Track Input
Selected Pin0
Pin Enabled
Pin TypePuppet Pin (Pos + Rotate + Scale)
Translate X / Yx960y540
Rotate (deg)0
Scale1
Local Stiffness1
Influence Radius (px)90
Overlap Depth0
Rest Anchor X / Yx960y540
Mesh RegionAuto (Alpha Silhouette if Cutout, else Full Frame)
Mesh Triangles600
Mesh Expansion (px)6
Alpha Threshold0.02
Lock Frame Borders (Full Frame)
Keep Unwarped Background Outside Matte
Show Mesh in Viewer
ARAP Rigidity Iterations8
FilterCubic (Catmull-Rom Sharp)
Motion Blur
Shutter0.5
Blur Samples7
OutputWarped Result
Invert Mask
Mix1

All controls

ANR Mesh Warp42 controls
StatusStatuspwStatus

What the node is doing: the Reference Frame, how many pins there are, the selected pin and its keys, and what the last import made.

Reference FrameSliderpwRefFrame

Frame where the rest Puppet Mesh is built and pins attach to the object at rest (automatically set to current frame on create).

Default: 0

Set Ref to Current FrameButtonpwSetRefFrame

Sets Reference Frame to the current timeline frame and rebuilds the Puppet Mesh.

Rebuild MeshButtonpwRebuildMesh

Rebuilds the triangulated Puppet Mesh from the Reference Frame silhouette.

Hold Source Picture at Ref FrameCheckboxpwFreezeSource

When ticked, takes the pixels from Reference Frame and morphs that held picture across all frames. Leave off when Source is a live moving element or already held.

Default: off

Morph AmountSliderpwMorphAmount

Global morph intensity (0 = unwarped Rest Pose, 1 = full animated Puppet Pose, >1 = exaggerated follow-through).

Default: 1

Puppet Pins (Click Viewer to Add)

Viewer Tool ModeMenupwToolMode

Pose / Morph: click empty mesh to add a pin; drag pins, rotation arm, or scale ring on any frame to animate over time.
Edit Rest Pins: adjust where pins attach on the object without deforming the image.

Default: Pose / Morph (Animate Pins Over Time)Options: Pose / Morph (Animate Pins Over Time) Edit Rest Pins (Reposition Anchor Without Warping)

New Pin TypeMenupwNewPinType

Puppet Pin: full position + rotation + scale + stiffness + overlap depth.
Starch Pin: stiffens the mesh inside Radius without pulling position.

Default: Puppet Pin (Pos + Rotate + Scale)Options: Puppet Pin (Pos + Rotate + Scale) Starch Pin (Keep Region Rigid)

Auto-Key Pin AnimationCheckboxpwAutoKey

When on, adding a pin automatically sets keyframes on Translate X/Y, Rotate, and Scale, and dragging on any frame auto-keys.

Default: on

Add PinButtonpwAddCenterPin

Adds a Puppet Pin at the center of the Source and keys Translate, Rotate, and Scale.

Prev PinButtonpwPrevPin

Selects the previous Puppet Pin.

Next PinButtonpwNextPin

Selects the next Puppet Pin.

Reset Pin PoseButtonpwResetPinPose

Resets the selected pin back to its Rest pose on this frame.

Reset All PoseButtonpwResetFramePose

Resets all pins back to Rest on this frame.

Delete PinButtonpwDeletePin

Deletes the selected Puppet Pin.

Clear AllButtonpwClearAllPins

Removes all Puppet Pins.

Import Track InputButtonpwImportTrack

Makes a pin of every point of the tracker on the Track input (a Nuke Tracker, or an ANR AI Point / Dense Point Tracker) that has a position on the Reference Frame: the pin rests there and follows the point on every frame it was tracked (it lets go while the point is hidden). Pressing it again replaces the pins it made before; pins placed by hand stay. Up to 64 pins.

Selected PinSliderpwActivePin

1-based index of the currently selected Puppet Pin — changing this switches the Translate, Rotate, and Scale knobs below to that pin.

Default: 0

Pin EnabledCheckboxpwSelEnabled

Enables or disables the selected Puppet Pin.

Default: on

Pin TypeMenupwSelType

Puppet Pin deforms position, rotation, and scale; Starch Pin locks local mesh rigidity.

Default: Puppet Pin (Pos + Rotate + Scale)Options: Puppet Pin (Pos + Rotate + Scale) Starch Pin (Keep Region Rigid)

Translate X / YPositionpwSelPose

Animated X/Y position of the selected pin (automatically keyed when adding a pin; switches curves when changing Selected Pin).

Default: 960 540

Rotate (deg)SliderpwSelRotate

Animated local rotation / bend angle in degrees of the selected pin (automatically keyed when adding a pin).

Default: 0

ScaleSliderpwSelScale

Animated local isotropic scale factor of the selected pin (automatically keyed when adding a pin).

Default: 1

Local StiffnessSliderpwSelStiff

Animated local mesh rigidity around the selected pin (0 = flexible limb, 1 = rigid Starch zone).

Every new pin starts at 1: a click in the Viewer, Add Pin, Import Track Input and Export to Mesh Warp alike. A pin saved in a comp keeps its own value.

Default: 1

Influence Radius (px)SliderpwSelRadius

Animated pixel falloff radius for Rotate, Scale, and Local Stiffness on the selected pin.

Default: 90

Overlap DepthSliderpwSelOverlap

Animated AE Overlap Z-order of the selected pin: positive values pass IN FRONT of negative values!

Default: 0

Rest Anchor X / YPositionpwSelRest

Where the selected pin attaches to the object on the Reference Frame.

Default: 960 540

Puppet Mesh (Silhouette & ARAP)

Mesh RegionMenupwMeshRegion

Auto wraps the mesh tightly around the object's Alpha (or Matte input), or uses Full Frame on opaque plates.

Default: Auto (Alpha Silhouette if Cutout, else Full Frame)Options: Auto (Alpha Silhouette if Cutout, else Full Frame) Alpha Silhouette Only Full Frame

Mesh TrianglesSliderpwMeshTriangles

Target number of triangles in the Puppet Mesh (no upper limit — type any value such as 20000 or 50000 for ultra-fine detail).

Default: 600

Mesh Expansion (px)SliderpwMeshExpansion

Expands the Puppet Mesh boundary outward around the object's alpha silhouette (just like AE Expansion).

Default: 6

Alpha ThresholdSliderpwAlphaThresh

Minimum alpha treated as part of the object silhouette.

Default: 0.02

Lock Frame Borders (Full Frame)CheckboxpwLockBorders

When meshing Full Frame, pins the outer edges of the frame so corners never pull inward.

Default: on

Keep Unwarped Background Outside MatteCheckboxpwKeepUnwarpedBg

Useful when using a Roto Matte on a full plate: warps inside the Matte and keeps background outside.

Default: off

Show Mesh in ViewerCheckboxpwShowMesh

Draws the live deforming triangle mesh wireframe in the Nuke Viewer.

Default: on

ARAP Rigidity IterationsSliderpwArapIters

As-Rigid-As-Possible solver iterations (higher preserves limb volume even on extreme bends).

Default: 8

Render, Motion Blur & Output

FilterMenupwFilter

Sub-pixel texture filter when warping the Puppet Mesh.

Default: Cubic (Catmull-Rom Sharp)Options: Cubic (Catmull-Rom Sharp) Bilinear (Smooth)

Motion BlurCheckboxpwMotionBlur

Blurs animated Puppet Pins naturally across the camera shutter.

Default: off

ShutterSliderpwShutter

Shutter duration in frames (0.5 = 180-degree shutter).

Default: 0.5

Blur SamplesSliderpwMBSamples

Sub-frame samples averaged when Motion Blur is on.

Default: 7

OutputMenupwOutputMode

Warped Result: final morphed output.
Rest / Deformed Mesh: burns wireframe directly into RGB.
Stiffness & Overlap Map: R=Stiffness, G=In-Front Overlap, B=Behind Overlap.

Default: Warped ResultOptions: Warped Result Rest Mesh Diagnostic Deformed Mesh Diagnostic Stiffness & Overlap Map

Invert MaskCheckboxpwInvertMask

Inverts the Mask input.

Default: off

MixSliderpwMix

Blends between unwarped plate (0) and Puppet-warped output (1).

Default: 1

Tips

  • Viewer Tool Mode > Edit Rest Pins (Reposition Anchor Without Warping) moves where a pin holds the object without warping the picture. The buttons at the top left of the Viewer switch the mode, turn the mesh on and off, and put every pin back to its rest pose on this frame.
  • Delete or Backspace in the Viewer deletes the selected pin. Reset Pin Pose puts it back to its rest pose on this frame, and Reset All Pose does that for every pin.
  • Hold Source Picture at Ref Frame morphs the Reference Frame's picture across the shot, for a still element. Leave it off when the Source is a live, moving element.
  • Mesh Triangles sets how fine the mesh is: raise it for small detail. Mesh Expansion (px) grows an outline mesh past the object's edge, and Alpha Threshold sets the lowest alpha that counts as part of the object.
  • With a roto on Matte over a full plate, Keep Unwarped Background Outside Matte warps what is inside the roto and keeps the plate outside it.
  • Morph Amount scales the whole warp: 0 is the rest pose, 1 the full pose, and above 1 an exaggerated follow-through.
  • Pressing Import Track Input again after a new track replaces the pins the last import made; pins you placed by hand stay.
  • Shutter and Blur Samples work only with Motion Blur on. A Shutter of 0.5 is a 180-degree shutter.
  • Output > Stiffness & Overlap Map shows Local Stiffness in red, and Overlap Depth in green (in front) and blue (behind).
  • A node whose pins came from a tracker shows its Reference Frame under its name in the Node Graph, such as Ref Frame 8.

Good to know

  • It runs with either an ANR Trackers or an ANR Comp and Depth licence. It runs no AI model and needs no graphics card.
  • The mesh is always built from the Reference Frame's picture. Set Ref to Current Frame moves the Reference Frame to the frame you are on and rebuilds the mesh; Rebuild Mesh builds it again after the picture or the matte changed on that frame.
  • A node holds up to 64 pins. An import takes up to 64 minus the pins placed by hand, spread over the shape on the Reference Frame, and says on the status line how many it left out.
  • Import Track Input reads a Nuke Tracker's tracks on the frames they are enabled and keyed, and an ANR tracker's solved frames. With Export Selected Points Only ticked on an ANR tracker, only its selected points come in.
  • A point with no position on the Reference Frame makes no pin: track it through that frame first, or choose another Reference Frame.

Something unclear or missing? Write to support@anrfx.com.