top of page
  • satheesrev

predefined Animation Curve for the multiply node.

Created the predefined animation curve to help out the day to day manual work. User can create the quick 0-1, 1-0, 0-1-0 in multiply node by selecting the function from the animation menu.





import nuke

def oneZero():

for node in nuke.selectedNodes():

curFrame = nuke.frame()

nxtFrame = curFrame+1

k = node['value']

k.setAnimated()

k.setValueAt( 1, curFrame )

k.setValueAt( 0, nxtFrame )

def oneMinusZero():

for node in nuke.selectedNodes():

curFrame = nuke.frame()

prvsFrame = curFrame-1

k = node['value']

k.setAnimated()

k.setValueAt( 1, curFrame )

k.setValueAt( 0, prvsFrame )

def zeroOnezero():

for node in nuke.selectedNodes():

curFrame = nuke.frame()

nxtFrame = curFrame+1

prvsFrame = curFrame-1

k = node['value']

k.setAnimated()

k.setValueAt( 1, curFrame )

k.setValueAt( 0, nxtFrame )

k.setValueAt( 0, prvsFrame )

4 views0 comments

Recent Posts

See All

Automatically pin the Cornerpin in Nuke

This little code place the cornerPin nodes 4 pin's automatically based on the bbox. If your image dosen't have bbox add a crop node and crop it as per your need. import nuke def autoPinning(): selNode

bottom of page