LUTInvert will generate the inverse of a 3D LUT, assuming a CMSTestPattern-style image as input.
Have you ever wanted to integrate footage into a project that looked good on your monitor but where you didn't have the Cineon or DPX source If you have the grade or LUT for your show, you can use LUTInvert to generate the inverse of that grade or LUT. You can then use the inverted grade/LUT to bring the footage that looked good on your monitor into the Cineon or DPX space for your show.
Caveats: 3D LUTs are generally pretty low resolution, using 17, 33 or 65 steps in each dimension. We can generate the inverse with this node, but it won't be exact.
The Blink source code is available on Nukepedia and on github here:
Here we have the original CMSTestPattern image, the image with a grade applied and finally a 'inverse' image for that grade generated by LUTInvert.
Example Nuke Script
An example Nuke script can be downloaded from github here:
The MIT License (MIT)
Copyright (c) 2014-2015 Haarm-Pieter Duiker
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Please login in order to download these files.