mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
feat(nuke): include only nodes with subset knob
This commit is contained in:
parent
3f1b86f002
commit
df41c92f44
1 changed files with 6 additions and 8 deletions
|
|
@ -23,15 +23,13 @@ class CollectNukeInstances(pyblish.api.ContextPlugin):
|
|||
instances = []
|
||||
# creating instances per write node
|
||||
|
||||
self.log.debug("nuke.allNodes(): {}".format(nuke.allNodes()))
|
||||
for node in nuke.allNodes():
|
||||
try:
|
||||
if node["disable"].value():
|
||||
continue
|
||||
except Exception as E:
|
||||
self.log.warning(E)
|
||||
continue
|
||||
# gets only nodes with subset knob
|
||||
nodes = [n for n in nuke.allNodes()
|
||||
if get_avalon_knob_data(n,
|
||||
["avalon:", "ak:"]).get("subset")]
|
||||
|
||||
# creating instances per write node
|
||||
for node in nodes:
|
||||
# get data from avalon knob
|
||||
self.log.debug("node[name]: {}".format(node['name'].value()))
|
||||
avalon_knob_data = get_avalon_knob_data(node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue