Skip to content

Instantly share code, notes, and snippets.

@vfxwiki
vfxwiki / importXmlCdlFileIntoNuke.py
Created April 18, 2017 12:18
import xml/cdl file into nuke
"""Various utilities relating to the OCIOCDLTransform node
"""
import nuke
import PyOpenColorIO as OCIO
import xml.etree.ElementTree as ET
def _node_to_cdltransform(node):
"""From an OCIOCDLTransform node, returns a PyOpenColorIO
@vfxwiki
vfxwiki / OpticalZDefocus.nk
Last active August 31, 2017 01:31 — forked from jedypod/OpticalZDefocus.md
OpticalZDefocus is a physically accurate ZDefocus, which controls circle of confusion (coc) size based on lens geometry using the depth of field equation. Set your lens and film-back characteristics, your focus distance, and adjust the size of your bokeh with the aperture size, just like a real lens.
# forked from Jedediah Smith https://gist.github.com/jedypod/50a3b68f9b5bbe487e1a
# modified by Rafal Kaniewski https://gist.github.com/vfxwiki/beac2c8c65f6a9d50d95d21e52a32ddb
set cut_paste_input [stack 0]
version 9.0 v8
push $cut_paste_input
Group {
name ZDefocusOptik
help "<b>OpticalZDefocus</b> is a physically accurate ZDefocus, which controls circle of confusion (coc) size based on lens geometry using the depth of field equation. \n\nSet your lens and film-back characteristics, your focus distance, and adjust the size of your bokeh with the aperture size, just like a real lens."
tile_color 0xff802bff
selected true