1 Your mission
set the "Merge holdout" operation so the robot is removed inside the shape
B = robot, A = shape: you want B outside A
2 Why it works
If something in the plate is closer than the CG, the CG must be cut away there (a holdout), or it floats in front of what should hide it. Roto the near object and stencil it out of the CG before the over.
Here an ellipse shape stands in for a post in front of the robot. Pick the operation that removes the robot where the ellipse is.
Where the numbers come from: Computed in your browser. Saturation, Multiply, Clamp, Invert, Keymix, Copy and Grade are checked against node-based compositing software. Blur, Defocus, Glow, Sharpen, ChromaticAberration, Vignette, LensDistort, Grain, Erode, Toe, the Keyer and Despill are teaching versions, not identical to Nuke’s nodes. Transform here is also a teaching version: bilinear filtering, no concatenation, cropped at the frame edge. Images are our own Blender renders (the green screen is fully code-built; the desert scene uses Gaea 2.3 hills, a Poly Haven CC0 HDRI sky, Poly Haven CC0 rocks and grass, Quixel sand and cliff textures and a Mixamo rig for the robot, with Quixel and Mixamo used in the renders only).