Add search and replace scene_viewlayers_socket name option

0.2.0
This commit is contained in:
pullusb
2025-03-31 17:19:27 +02:00
parent d56d32ad57
commit 8f689af892
4 changed files with 169 additions and 33 deletions
+6 -4
View File
@@ -105,10 +105,12 @@ def connect_to_file_output(node_list, file_out=None, base_path='', excludes=None
## create one output facing node and connect all
outs = [o for o in node.outputs if not o.is_unavailable and not 'crypto' in o.name.lower() and o.name not in exclusions]
cryptout = [o for o in node.outputs if not o.is_unavailable and 'crypto' in o.name.lower() and o.name not in exclusions]
if node.type == 'R_LAYERS':
out_base = node.layer
elif node.label:
## Using render layer can force connexion to an existing FO node when user may want a new one
# if node.type == 'R_LAYERS':
# out_base = node.layer
if node.label:
out_base = node.label
else:
out_base = node.name