mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed redundant module
This commit is contained in:
parent
b1151924ad
commit
ac6b2c271e
1 changed files with 0 additions and 26 deletions
|
|
@ -637,32 +637,6 @@ def _get_id(node):
|
|||
return attribute_value
|
||||
|
||||
|
||||
def filter_by_id(nodes, uuids):
|
||||
"""Filter all nodes which match the UUIDs
|
||||
|
||||
Args:
|
||||
nodes (list): collection of nodes to check
|
||||
uuids (list): a list of UUIDs which are linked to the shader
|
||||
|
||||
Returns:
|
||||
list: matching nodes
|
||||
"""
|
||||
|
||||
filtered_nodes = []
|
||||
for node in nodes:
|
||||
if node is None:
|
||||
continue
|
||||
|
||||
attribute_value = _get_id(node)
|
||||
|
||||
if attribute_value not in uuids or attribute_value is None:
|
||||
continue
|
||||
|
||||
filtered_nodes.append(node)
|
||||
|
||||
return filtered_nodes
|
||||
|
||||
|
||||
def get_representation_file(representation, template=TEMPLATE):
|
||||
"""
|
||||
Rebuild the filepath of the representation's context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue