Related Posts

Share This

Face replacement in Nuke

These are my notes from my nuke class with Damian Allen.

Face replacement with Nuke

1. Left pics -> Source face, Right Pics -> Target face


Screen Shot 2013-11-01 at 8.24.39 AM

2. Add Tracker node -> Put a tracker node on his chin’s jewel and two other trackers on his eye ends.

  • How to run tracking

Get one track on his chin’s jewel – The target is very clear so we can run tracking at once.

Screen Shot 2013-11-01 at 2.53.34 PM Screen Shot 2013-11-01 at 2.53.18 PM Screen Shot 2013-11-01 at 2.53.46 PM

For tracking on man’s eye areas – The model is blinking between fr 38 to fr 55.

  • Run tracking frame by frame till he blinks
  • Use clear_fwd or clear_bkwd ( the top right corner ) to avoid the eye area.
  • Hold command + grab the tracker box, move away from the eye area to the eyebrows.
  • click clear_offset  move the track point back to current tracker position ( after he blinks)
  • continue tracking, when he blinks, repeat it the same way.

3. I have made three tracks for the target face.

Screen Shot 2013-11-01 at 3.22.00 PM Screen Shot 2013-11-01 at 3.22.08 PM


4. Create a Corner Pin2D

Click to From in Corner Pin2D – copy the value from track1 ( Screen Lf eye ) to from4 – Tip:  select the track you want then put the curser to the right side bar, you see the curser changed to hand shape then drag and drop to the CornerPin2d “from4” in this case. copy rest of them.  When pairing up the Tracker with the CornerPin it is wise to ensure that the position of the Tracking points and the CornerPin points correspond with each other (default is anti-clockwise from bottom left). 

I only create 3 tracks and we have 4 corners to fill. We need to add some expression on from 1 and from2


x: Tracker1.tracks.3.track_x-50

Y: Tracker1.tracks.3.track_y


x: Tracker1.tracks.3.track_x+50

Y: Tracker1.tracks.3.track_y

In the CornerPin from tab press copy to.


This will copy all the values from the to parameters. Remove animation as you do so (Right-click, remove animation). Tip: You should be at a ref frame when you do this. 

Screen Shot 2013-11-03 at 9.58.54 AM

Now, the source face is ready.

7. Add Transform to get the target face into place.

Use it to stabilize. Go to the Transform tab and change the pull-down menu to stabilize. This will remove all motion from the footage.

Screen Shot 2013-11-03 at 10.32.34 AM

8. Get ready for the target pic the same way we did on the source pic.

Screen Shot 2013-11-03 at 10.07.09 AM

9. Copy the target face’s CornerPin nodes be placed to get the foreground into place under the source face.

Screen Shot 2013-11-03 at 10.41.11 AM

10. Created a roto paint and make a garbage  matt for taking out her face. We are going use this as a mask for the source face with the target face’s CornerPin.

Screen Shot 2013-11-03 at 10.53.25 AM Screen Shot 2013-11-03 at 10.51.35 AM

11.  Create a KeyMix to combine them together.

Screen Shot 2013-11-03 at 10.56.15 AM

12, Finally image

Screen Shot 2013-11-03 at 10.56.43 AM