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
10.5, 10.0, 9.0, 8.0, 7.1, 7.0 or later
Linux, Mac, Windows
01 Mar 2017
318
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
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.
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!
cheers!
I am using Nuke 10.0v4
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?
RSS feed for comments to this post