Remove default scene use restriction

main
pullusb 2024-04-22 15:39:40 +02:00
parent 2251313794
commit fbbc0ecaf3
5 changed files with 10 additions and 6 deletions

View File

@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix
Activate / deactivate all masks using MA layers
-->
1.7.4
- removed: Restriction to use default scene "Scene"
1.7.3
- added: Optional string templates for fileoutputs

View File

@ -59,7 +59,7 @@ def check_file_output_numbering(reports=None):
prenum = re.compile(r'\d{3}_')
file_outs = []
for S in bpy.data.scenes:
if S.name == 'Scene' or not S.node_tree or not S.use_nodes:
if not S.node_tree or not S.use_nodes: # S.name == 'Scene' or
continue
file_outs += [n for n in S.node_tree.nodes if n.type == 'OUTPUT_FILE']

View File

@ -28,7 +28,7 @@ def renumber_sequence_on_disk_from_file_slots(apply=True, active_scene_only=Fals
# multi scene check:
file_outs = []
for S in bpy.data.scenes:
if S.name == 'Scene' or not S.node_tree or not S.use_nodes:
if not S.node_tree or not S.use_nodes: # S.name == 'Scene' or
continue
file_outs += [n for n in S.node_tree.nodes if n.type == 'OUTPUT_FILE' and n.name.startswith('OUT_') and not n.mute]

View File

@ -22,8 +22,8 @@ class GPEXP_OT_render_all_scenes(bpy.types.Operator):
start = time()
ct = 0
for scn in bpy.data.scenes:
if scn.name == 'Scene':
continue
# if scn.name == 'Scene':
# continue
if not scn.use_nodes:
continue
outfiles = [n for n in scn.node_tree.nodes if n.type == 'OUTPUT_FILE']

View File

@ -20,8 +20,8 @@ def check_outname(ob, l):
ng_name = f'NG_{ob.name}'
## check in wich node tree this exists
for scn in bpy.data.scenes:
if scn.name == 'Scene':
continue
# if scn.name == 'Scene':
# continue
ng = scn.node_tree.nodes.get(ng_name)
if ng:
break