Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit e7e9d7e

Browse files
authored
Merge pull request #88 from pypeclub/feature/PYPE-25-nuke-backdrop-publish
Publishing workflow for backdrop nodes
2 parents f23f538 + 211fb34 commit e7e9d7e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

avalon/nuke/lib.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,20 @@ def get_avalon_knob_data(node, prefix="avalon:"):
207207

208208
return data
209209

210+
def check_subsetname_exists(nodes, subset_name):
211+
"""
212+
Checking if node is not already created to secure there is no duplicity
213+
214+
Arguments:
215+
nodes (list): list of nuke.Node objects
216+
subset_name (str): name we try to find
217+
218+
Returns:
219+
bool: True of False
220+
"""
221+
return next((True for n in nodes
222+
if subset_name in get_avalon_knob_data(n,
223+
["avalon:", "ak:"]).get("subset", "")), False)
210224

211225
def check_subsetname_exists(nodes, subset_name):
212226
"""

0 commit comments

Comments
 (0)