flop flip in nuke
flopFlip.py
Nuke doesn't have this small and very handy utility built-in. For doing this function in nuke we need to use "VIEWER_INPUT" method (or) add mirror node and connect it with a (any) node, then constantly check and un-check the Horizontal or vertical knob. Finally you have to delete the mirror node.
flopFlip script dosen't need above step 's. Just press ctrl+F for flop, ctrl+shift+F for flip.
Before:
After:
flopFlip will help you to flop & flip your current viewer result. I use to do this for checking my final comps and review my shots. Playback software's like RV, frame-cycler and other tools have this handy function.
flopFlip:
Hope this will help you friends.
download: flopFlip.py
nukepedia: nukepedia
'''
Created on 21-apr-2013
@author: satheesh-R
mail - satheesrev@gmail.com
http://satheeshnuketutorials.blogspot.in/
Add following lines to your menu.py:
import flopflip
menuBar.addCommand('Edit/Node/flop', 'flopflip.flop()', 'ctrl+f')
menuBar.addCommand('Edit/Node/flip', 'flopflip.flip()', 'ctrl+shift+f')
'''
import nuke
import nukescripts
def flop():
for i in nuke.selectedNodes() :
nuke.selectedNode().setSelected(False)
curViewer = nuke.activeViewer()
curNode = curViewer.node()
acticeVinput = curViewer.activeInput()
curN = curNode.input(acticeVinput)
name = curN.name()
curN.setSelected(True)
if name == 'flopFootageSatheeshR' :
nukescripts.node_delete(popupOnError=True)
nuke.selectedNode().setSelected(False)
else:
flop = nuke.createNode('Mirror', inpanel=False)
flop.setName('flopFootageSatheeshR')
flop['Horizontal'].setValue(True)
def flip():
for i in nuke.selectedNodes() :
nuke.selectedNode().setSelected(False)
curViewer = nuke.activeViewer()
curNode = curViewer.node()
acticeVinput = curViewer.activeInput()
curN = curNode.input(acticeVinput)
name = curN.name()
curN.setSelected(True)
if name == 'flipFootageSatheeshR' :
nukescripts.node_delete(popupOnError=True)
nuke.selectedNode().setSelected(False)
else:
flip = nuke.createNode('Mirror', inpanel=False)
flip.setName('flipFootageSatheeshR')
flip['Vertical'].setValue(True)
Add following lines to your menu.py:
import flopflip
menuBar.addCommand('Edit/Node/flop', 'flopflip.flop()', 'ctrl+f')
menuBar.addCommand('Edit/Node/flip', 'flopflip.flip()', 'ctrl+shift+f')
Comments
Post a Comment