Repairs Euler 360° jumps in the Nuke curve editor, common problem when importing cameras in alembic and .fbx etc.
transformRotationCurveEulerFilter
Updated: 10 August 2020
Author: MichaelKarp
Compatible Nuke versions: 8.0 or later
Compatibility:
euler flip script, version 3, SDV
Description:
Fixes 3D Euler rotation flipping for animated cameras and axis nodes in Nuke.
Euler rotation flipping occurs when rotation values exceed 360 degrees in one frame.
Version 3 [2020-07-30] - David Cattermole:
- Add usage docs.
- Convert to a Python function for Nuke GUI.
- Filter the X axis as well.
- Script operates on multiple selected nodes at once.
Version 2 [2020-06-24]:
- filter y- and z-curve of knob 'rotate' in selected node
Version 1 [2020-06-23]:
- filter y-curve of knob 'rotate' in selected node
Installation:
To install this script, copy the file into your Nuke python directory,
for example on Linux, the home directory is here:
/home//.nuke/
Once the script is copied to your Nuke directory, you may add the following
lines to your 'menu.py' file:
# CODE START
import transformRotationCurveEulerFilter
t = nuke.toolBar('Nodes')
toolMenu = t.addMenu('Custom menu name')
toolMenu.addCommand('Transform Rotation Curve Euler Filter', 'transformRotationCurveEulerFilter.main()')
# CODE END
These lines will add a new node button and node entry to the node bar
(left bar in the Nuke UI by default).
Alternatively, if you prefer not to add a new node button, open the Nuke
script editor, type the following and press CTRL + ENTER:
# CODE START
import transformRotationCurveEulerFilter
transformRotationCurveEulerFilter.main()
# CODE END
For more advanced installation, see the Nuke Python documentation:
https://learn.foundry.com/nuke/developers/latest/pythondevguide/installing_plugins.html
Usage:
1) Select Camera or Axis nodes.
2) Run the tool (with the Node menu bar, or manually with the Nuke
script editor - see Installation above)
3) Done.