stassius

Redshift rewire

Nov 24th, 2017
1,554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import hou
  2.  
  3. def main():
  4.     if not hou.selectedNodes():
  5.         print ("No selected node")
  6.         return
  7.     curnode=hou.selectedNodes()[0]
  8.     if  curnode.type().category().name()!='Vop':
  9.         print("No Shop selected!")
  10.         return
  11.     result = None
  12.     for node in curnode.parent().children():
  13.         if node.type().name() == "redshift_material":
  14.             result = node
  15.     result.setInput(0,curnode,0)
  16.    
  17. main()
Advertisement
Add Comment
Please, Sign In to add comment