
ANR Depth Matte
Mattes from distance: key everything at a picked depth, split the shot into near-to-far zones, outline depth edges, hold out, insert an element at a depth, or sweep a reveal through the scene.
- Utility
- Comp & Depth pack
- 4 inputs
- 43 controls
Overview
Depth Matte makes mattes from how far things are, using the distance pass of ANR Depth Prep. A Depth Key keeps everything at the distance you pick in the viewer, with a range and a soft fall-off in front and behind. Zones splits the shot into four bands from near to far in red, green, blue and alpha. Silhouette outlines where the distance jumps, for light wrap and edge work.
Hold-Out gives everything in front of a distance, and Insert Element places a second picture at a distance, behind whatever in the plate is nearer: a soft-edged depth merge. Sweep animates a reveal, a moving band, a scan line or a noisy dissolve travelling through the depth of the shot.
The node reads the Depth Prep's Near and Far distances through the wire, and its Status says which Depth Prep it reads.
Inputs
- Sourceoptional
The plate. The matte is put into its alpha, multiplied with it or tinted over it, as Output says.
- Depthrequired
An ANR Depth Prep with Output on Depth. Any other image is read as distance from its red channel.
- Elementoptional
Insert Element only: the premultiplied picture to place into the plate, already positioned in the frame.
- ElementDepthoptional
Insert Element and Hold-Out: a distance for every pixel of the element (red channel, same units as the Depth Prep). Without it the element stands at Distance.
Output. With Output on Matte in Alpha, the plate with the matte as its alpha. Output can also give the matte in every channel, the plate premultiplied, or a tinted preview. Zones writes its four bands into red, green, blue and alpha, and Insert Element gives the element merged into the plate.
Quick start
- Make a distance pass with ANR Depth Prep (Output on Depth).
- Add ANR Depth Matte. Connect the plate to Source and the Depth Prep to Depth.
- Keep Mode on Depth Key, set Output to Preview, and drag the Pick handle in the viewer onto what you want keyed.
- Widen Range In Front and Range Behind until the whole subject is in the key; use Softness In Front and Softness Behind for the fall-off.
- Set Output to Matte in Alpha (or Matte) and use the result downstream.
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.
No control matches.
All controls
ANR Depth Matte43 controls
- StatusStatus
status Where the distances come from.
- ModeMenu
dmMode Depth Key: everything at the picked distance.
Zones: four bands, near to far, in red, green, blue and alpha.
Silhouette: outlines where distance jumps.
Hold-Out: everything in front of Distance.
Insert Element: the Element input placed at Distance (or its own Element Depth), behind anything in the plate that is nearer.
Sweep: an animated reveal, band, scan line or dissolve travelling through depth.- OutputMenu
dmOutput Matte in Alpha: the plate with the matte as its alpha.
Matte: the matte in every channel.
Premultiplied: the plate times the matte.
Preview: the matte tinted over the plate. For Sweep > Scan Line, the scanner look.
Zones and Insert Element ignore this.- Preview ColourColour
dmPreviewColour Tint for Output = Preview.
- InvertCheckbox
dmInvert Flip the matte.
Distance
- Distance FromMenu
dmDistanceFrom Pick Point: the depth under Pick, read on every frame -- animate or track the point and the key follows. Distance Knob: the number below (dragging Pick also sets it).
- PickPosition
dmPick Drag onto what you want keyed (or held out).
- DistanceSlider
dmDistance With Distance From = Distance Knob. Depth Key: the centre of the key. Hold-Out / Insert Element: where the element stands. Animatable.
- Range In FrontSlider
dmRangeFront How far in front of Distance is fully in the key.
- Range BehindSlider
dmRangeBehind How far behind Distance is fully in the key.
- Softness In FrontSlider
dmSoftFront Fall-off in front of the range, in distance units.
- Softness BehindSlider
dmSoftBehind Fall-off behind the range, in distance units.
- Hold-Out SoftnessSlider
dmHoldSoft Hold-Out / Insert Element: how gradually the plate takes over near Distance.
Zones
- Near | MidSlider
dmZone1 Where zone 1 (red) ends.
- Mid | FarSlider
dmZone2 Where zone 2 (green) ends.
- Far | DistanceSlider
dmZone3 Where zone 3 (blue) ends; alpha is everything beyond.
- Zone Softness %Slider
dmZoneSoft Width of each transition, as a percentage of its distance.
- Split This FrameButton
dmZoneSet Set the three boundaries in even steps across this frame's depth (near to far).
Silhouette
- JumpSlider
dmEdgeThreshold How big a jump in distance, as a fraction (0.08 = 8%), makes an edge.
- Edge SoftnessSlider
dmEdgeSoft How gradually a jump turns into an edge.
- SideMenu
dmEdgeSide Near Side: the outline of the object in front (light wrap, edge fixes). Far Side: the background just behind it.
- GrowSlider
dmEdgeGrow Pixels to widen the outline.
- BlurSlider
dmEdgeBlur Pixels of blur on the outline.
Sweep
- SweepMenu
dmSweepType Reveal: fills in as it travels. Band: a moving slice. Scan Line: a thin line (Output = Preview for the scanner look). Dissolve: a noisy reveal.
- DirectionMenu
dmSweepDir Which way it travels through depth.
- ProgressSlider
dmSweepProgress Manual sweep position: 0 = start, 1 = finished. Keyframe this knob on your chosen frames. Disable Auto Animate to use it; no timeline offset is applied.
- Auto AnimateCheckbox
dmSweepAuto Off (default): use Progress, including its keyframes. On: ignore Progress and travel from Start Frame over Duration frames.
- Start FrameSlider
dmSweepStart First frame of the sweep.
- DurationSlider
dmSweepDuration Frames to go from near to far.
- LoopMenu
dmSweepLoop After Duration.
- RangeMenu
dmSweepRangeFrom From Depth Prep: travel between its Near and Far Distance.
- NearSlider
dmSweepNear Custom range: start distance.
- FarSlider
dmSweepFar Custom range: end distance.
- Even To The EyeCheckbox
dmSweepEven Travel evenly in 1/distance, so it does not rush through the foreground and crawl across the distance.
- WidthSlider
dmSweepWidth Band / Scan Line: thickness, as a share of the range.
- SoftnessSlider
dmSweepSoft Edge softness, as a share of the range.
- Screen AngleSlider
dmSweepAngle Direction across the frame for Screen Tilt (90 = bottom to top).
- Screen TiltSlider
dmSweepScreen Mix a direction across the frame into the sweep, so it also travels across the picture.
- Dissolve NoiseSlider
dmSweepNoise Dissolve: how ragged the edge is.
- Noise SizeSlider
dmSweepNoiseSize Dissolve: grain size in pixels.
- Scan ColourColour
dmScanColour Scan Line preview: line colour.
- Scan GlowSlider
dmScanGlow Scan Line preview: line brightness.
- Dim UnscannedSlider
dmScanDim Scan Line preview: how dark the not-yet-scanned depth is.
Tips
- With Distance From on Pick Point, the depth under Pick is read on every frame: track or animate the Pick point and the key follows the subject. Distance Knob uses a fixed, animatable number instead.
- In Zones, press Split This Frame to spread the three boundaries evenly across this frame's depth, then adjust them.
- Silhouette with Side on Near Side outlines the object in front, a good base for light wrap or edge fixes; Far Side gives the background just behind it.
- For Sweep, key Progress from 0 to 1 over the frames you want, or turn on Auto Animate and set Start Frame and Duration. Scan Line with Output on Preview gives the glowing scanner look.
- Even To The Eye makes a sweep travel evenly in depth as you see it, instead of rushing through the foreground.
- Screen Tilt mixes a screen direction into the sweep, so it also travels across the picture.
Good to know
- The node runs no AI model and needs no graphics card.
- Distances, ranges and softness are in the Depth Prep's units. Calibrate the Depth Prep if you want to work in metres.
- The sky and empty background (at the Depth Prep's Max Distance) are never in a Depth Key.
- Zones and Insert Element ignore Output.
- If the Status says the Depth Prep's Output is not Depth, set it back to Depth: the other outputs are not distances.
Something unclear or missing? Write to [email protected].