This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 |