This little code place the cornerPin nodes 4 pin's automatically based on the bbox. If your image dosen't have bbox add a crop node and crop it as per your need.
autoPinning
Updated: 31 July 2014
Author: satheesh
Compatible Nuke versions: 6.0 or later
Compatibility: