concatenate2Dtransforms v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Magno Borgo
This script will generate a single 2D transform node (CornerPin) from a group of several transforms.
Requirements:
10.5, 10.0, 9.0, 8.0, 7.1, 7.0 or later
Linux, Mac, Windows
01 Mar 2017
306

This script will generate a single 2D transform node (CornerPin) from a group of several transforms in sequence, baking the animation.
It works with Transform2D, CornerPin and Tracker nodes.

The result is a CornerPin node, with an animation on the extra matrix (the Transform2D node unfortunatelly doesn't have one).
It will use your project settings frame range to bake animations.

 

Usage: 

load the script, select the nodes and run:
transformstoMatrix()

 

The transform nodes must be conected for it to work. 
Motion Blur needs to be generated with a VectorBlur, the matrix animation doesn't generate motionblur (maybe a nuke BUG)

 

 

 

 

 

 

 

Please login in order to download these files.

Comments   

 
+1 # Michael Habenicht 2016-02-16 11:41
Thank you very much, very handy!
Actually you can make your script way shorter in that you don't have to calculate the matrix of the transform nodes yourself. The transform and tracker nodes have a hidden knob called 'matrix' that is only available through python that contains the matrix of the 2d transform.

In regard to this concatenation I was always imagening a node that has a matrix knob and is exposing the values of the underlying concatenated transform matrix live. Then it could also be expression linked without any python and/or baking involved. In addition then there is only a transform mix node missing.
 
 
+1 # Alexey Kuchinski 2017-01-04 15:08
Hi Magno, thank you for the script!

i had an error in beginning: "math module not defined",
fixed by "import math" in the head of your script.
works perfect now

regarding motion blur, you still can get proper motion blur with your corner pin:

1 connect your corner pin to Card
2 connect card to scanline render
3 in scanline render set projection mode to "uv", set samples to whatever you need.
thanks again
cheers!
 
 
0 # Magno Borgo 2017-01-05 14:46
Hi Alexey, yeah good catch. I'll add it on a new version. I gotta try the scanline render trick.

cheers!
 
 
0 # Michal Zeman 2017-02-28 17:08
Hi, for CornerPin it works perfectly, but if I select Transform or Tracker, it didnt work at all. It will only generate matrix full of zeros.

I am using Nuke 10.0v4
 
 
0 # Magno Borgo 2017-03-01 12:33
Hi Michael, it should work fine in v10 as well, I have been using it without problems.

The script is very dependent on the timeline in-out, if you try to convert a node that has data outside the timeline framerange it might not work. Maybe thats it?
 
 
0 # Michal Zeman 2017-03-01 13:46
I didn't get any error message like for Alexey, but "import math" fixed this problem. Thanks, its very useful script
 
 
0 # Magno Borgo 2017-03-01 16:04
Nice that it worked. I've updated the script to include the necessary import math (v1.2) and avoid issues for future users.
 

You have no rights to post comments

We have 3305 guests and 57 members online