Last active
May 13, 2018 10:41
-
-
Save greenvfx/5d416ce09ea7c910e08845798dd269e9 to your computer and use it in GitHub Desktop.
NUKE. Set "Rifman" to source filter
This file contains hidden or 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
def rotoFilterCorrector(): | |
RIFMAN = 4 | |
MITCHELL = 5 | |
ROTOS = ["Roto", "RotoPaint"] | |
for node in nuke.selectedNodes(): | |
if node.Class() in ROTOS: | |
curveKnob = node['curves'] | |
root = curveKnob.rootLayer | |
for shape in root: | |
attrs = shape.getAttributes() | |
#help(attrs) | |
attrs.set('sf', RIFMAN) | |
attrs.set('str', 0) | |
curveKnob.changed() | |
nuke.menu('Nuke').addCommand("Edit/RotoFilterCorrector", "rotoFilterCorrector()", 'v') | |
#nuke.addUpdateUI(rotoFilterCorrector) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment