Convert Roto and Rotopaint nodes shapes to a Splinewarp Node. This Nuke script will bake the actual shape's points positions to splinewarp shapes on the requested framerange, including transforms on the parent Layers
RotopaintToSplineWarp
Updated: 1 January 2014
Author: mborgo
Compatible Nuke versions: 7.0 or later
Compatibility: Linux, Mac, Windows
This Nuke script will bake the actual shape's points positions to splinewarp shapes on the requested framerange, including transforms on the parent Layers.
Most up to date version always at: http://github.com/magnoborgo/RotoPaintToSplineWarp2
Compatibility
Nuke v7 and up
KNOW LIMITATIONSShapes are moved with feather curves, its just a cosmetic issue, feather curves are ignored by the splinewarp node
USAGESource the script, and run it on Nuke's script editor
or use the provided menu.py file.
Changelog:
v2.1
is an update to address a Nuke v8 UI update bug
v2.0
Script now works on Nuke v7.
Added a mode to convert shapes to pin points.
v1.1
Improved curve copy with correct tangents for bezier and added bspline creation
Improved shape/stroke/layer detection
Modified the script to run better from user interface (in menus/DAG/etc)
Copyright (c) 2013, Magno Borgo
All rights reserved.
BSD-style license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Magno Borgo or its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.