CornerPin
CornerPin will independently transform the four corner points of its input. It is great for relocating 2D images into 3D space e.g. replacing the logo onto the side of a van or shifting a ground plane into position. It is often twinned with the Tracker or PlanarTracker node, from which it will inherit relocation data.
CornerPin has two tabs: the CornerPin2D tab determines where the four points are being moved 'to'. The 'from' tab determines where they are being moved from.
Tip: when using the CornerPin, it can be a bit confusing to watch the transform update live on screen. In such instances it can help to temporarily disable the CornerPin (select then press D). The values of the CornerPin can still be edited, bit it will no longer update live.
Tip: The whole process of CornerPinning an object (e.g. poster) into place is made more easy if the source image is the same format as the destination. Try it and see.
A common use of a CornerPin is to transform a format rectangle into a perspective rhomboid, or Vice versa. The snippet demonstrates this.
Press 'Expand' and select and copy everything below this line, then paste into the Nuke node graph.
set cut_paste_input [stack 0] version 9.0 v7 StickyNote { inputs 0 name StickyNote16 label "Turn this node off and on to see the result --->" selected true xpos -3528 ypos -602 } CheckerBoard2 { inputs 0 format "1920 1080 0 0 1920 1080 1 HD_1080" name CheckerBoard7 selected true xpos -3301 ypos -761 } CornerPin2D { to1 {270 300} to2 {1805 300} to3 {1500 800} to4 {658 800} invert false from1 {0 0} from2 {1920 0} from3 {1920 1080} from4 {0 1080} name CornerPin2D2 selected true xpos -3301 ypos -603 } Constant { inputs 0 channels rgb color 0.17 format "1920 1080 0 0 1920 1080 1 HD_1080" name Constant2 selected true xpos -3155 ypos -744 } Merge2 { inputs 2 name Merge5 selected true xpos -3155 ypos -603 } Write { name Write7 selected true xpos -3155 ypos -579 } Group { inputs 0 name Rhomboid selected true xpos -3305 ypos -236 } CheckerBoard2 { inputs 0 format "1920 1080 0 0 1920 1080 1 HD_1080" name CheckerBoard8 xpos -571 ypos -18 } CornerPin2D { to1 {270 300} to2 {1805 300} to3 {1500 800} to4 {658 800} invert false from1 {0 0} from2 {2048 0} from3 {2048 1556} from4 {0 1556} name CornerPin2D4 xpos -571 ypos 51 } Output { name Output1 xpos -571 ypos 84 } end_group CornerPin2D { to1 {0 0} to2 {1920 0} to3 {1920 1080} to4 {0 1080} invert false from1 {288 302} from2 {1710 292} from3 {1518 696} from4 {584 700} name CornerPin2D3 selected true xpos -3305 ypos -201 } Constant { inputs 0 channels rgb color 0.17 name Constant4 selected true xpos -3195 ypos -300 } Merge2 { inputs 2 name Merge6 selected true xpos -3195 ypos -201 } Write { name Write2 selected true xpos -3195 ypos -166 } StickyNote { inputs 0 name StickyNote17 label "Turn this node off and on to see the result --->" selected true xpos -3535 ypos -198 } StickyNote { inputs 0 name StickyNote18 label "See the difference between the \n'From' tranform state and the 'to'\ntransform state." selected true xpos -3505 ypos -154 } StickyNote { inputs 0 name StickyNote19 label "See the difference between the \n'From' tranform state and the 'to'\ntransform state." selected true xpos -3508 ypos -578 } StickyNote { inputs 0 name StickyNote20 label "A CornerPin used to transform a rhomboid to the format rectangle" note_font_size 20 selected true xpos -3564 ypos -348 } StickyNote { inputs 0 name StickyNote21 label "A CornerPin used to transform the format rectangle rhomboid to a rhomboid " note_font_size 20 selected true xpos -3586 ypos -804 }