Converts the 4 point track of a CornerPin2D Node into a matrix, and copies it into the transform of a roto node layer.
jre_convertCornerPin
Updated: 12 July 2023
Author: TheRetter
Compatible Nuke versions: 13.2 or later
Compatibility: Windows
The Author of this tool is Simon Björk (https://www.linkedin.com/in/simon-bj%C3%B6rk-bb077448/), I just tweaked and modified it a bit.
The addition is, that you get asked for a layer name on creation of the Roto. The reference frame of the track will be added to that description automaticlly.
To use it, copy the .py into your local .nuke folder and add these lines to your local menu.py
menu = nuke.menu('Nodes')
menu.addCommand('jre/ConvertCornerPin', 'nuke.load('jre_convertCornerPin'),jre_convertCornerPin()','ctrl+j')