Skip to content

Instantly share code, notes, and snippets.

@greenvfx
Last active May 13, 2018 10:41
Show Gist options
  • Save greenvfx/5d416ce09ea7c910e08845798dd269e9 to your computer and use it in GitHub Desktop.
Save greenvfx/5d416ce09ea7c910e08845798dd269e9 to your computer and use it in GitHub Desktop.
NUKE. Set "Rifman" to source filter
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