animated cornerpin to matrix v1.1

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: egbert reichel
Get a 4x4 Transform Matrix of an animated Cornerpin2D node for a selected frame range.
9.0, 8.0, 7.1, 7.0, 6.3 or later
Linux, Mac, Windows
18 Jul 2015
This Python Script creates a CornerPin node in Nuke using the
transform_matrix knob to store animation data of a given CornerPin node.
It will help distributing animated CornerPin data for example from Mocha to all sorts of nodes like,
'Gridwarp', 'SplineWarp', 'Paint and Roto' nodes without the need to attach a cornerpin underneath each instance.
This is based on Ivan Busquets explanations on using the nuke.math python module to do matrix operations and Pete O'Connell's 'cornerpin_to_matrix' conversion method, with added functionality to convert animation data at a given timeframe.
To access this script inside nuke, you can add the following lines to your and file accordingly. 
nuke.pluginAddPath( './scripts' )
nuke.pluginAddPath( './python' )
or any other name of the folder you store the script in.'Nuke')
n=m.addMenu('Scripts') #'Scipts' is the name of the menu entry and can be any other name you like.
n.addCommand('CornerPinToMatrix', 'animated_cornerpin_to_matrix.animatedCP2MTX()', icon='CornerPin.png')
Please login in order to download these files.


0 # Mohan Pugaz 2015-10-13 04:28
Awsum!.. Very Usefull.. Thanks a lot
0 # Falk Hofmann 2016-01-28 11:49
thanks Egbert,
made my day.
+1 # Christian Moreton 2018-11-21 22:00
Hi Egbert, I'm not getting a result from this script when I run it through script editor, I have a corner pin node selected. What am I missing?
+1 # Théophile Virnot 2019-12-30 16:02
You have to add an extra line : "animatedCP2MTX ()" at the end of the script to run it through the script editor.
0 # Richard mabj 2020-03-16 15:32
Is this still working in Nuke 12? I'm getting ''NameError: name 'animated_corne rpin_to_matrix' is not defined''
+2 # George Melesanakis 2022-05-13 11:45
Is this solved? Iam getting the same error!
0 # Damien MORMICHE 2023-12-02 16:50
Il faut rajouter import animated_corner pin_to_matrix dans le

import animated_corner pin_to_matrix'Nuke')
n.addCommand('CornerPinToMatrix', 'animated_corner pin_to_matrix.animatedCP2MTX()', icon='CornerPin .png')
0 # Adam Pettigrove 2023-06-06 08:32
Thank you so much Egbert, this has given me a solution to a problem I have been having for so long.

You have no rights to post comments

We have 2425 guests and 55 members online