Skip to content

Commit

Permalink
correct module name
Browse files Browse the repository at this point in the history
  • Loading branch information
coinish committed Nov 10, 2022
1 parent 419bec6 commit 2116515
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions python/script_clean_sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def upstream(startNode, nodes= None, what= nuke.EXPRESSIONS|nuke.INPUTS|nuke.HID
return


def select_upstream(nodes, backdrops= True, select= True, add_file_creators= False):#, dependent_file_generators= True):
def select_upstream_sd(nodes, backdrops= True, select= True, add_file_creators= False):#, dependent_file_generators= True):
#by Sean Danischevsky 2014
#select all upstream nodes (dependencies) of given nodes
#and optionally backdrops if the nodes are on backdrops
Expand Down Expand Up @@ -474,21 +474,8 @@ def cleanupScript(nodes):
#
import nukescripts

nodes= select_upstream(nodes, backdrops= True)
nodes= select_upstream_sd(nodes, backdrops= True)

#
'''
for node in original_sel:
try:
node.setSelected(True)
except ValueError:
pass
'''
#select_upstream(original_sel, backdrops= True)
#print 22222,nodes

#select_upstream(nodes, backdrops= True)
#print 33333,nodes
#delete everything else, except viewers:
delete_list= [node for node in nuke.allNodes() if (not node['selected'].value()) and node.Class() != "Viewer"]
nodes_delete_list= list(set(delete_list).intersection(set(nodes)))
Expand Down

0 comments on commit 2116515

Please sign in to comment.