scn name fileout lowercased

0.6.7

- fix: scene.name lowercased when set in outputfile name (using reset settings operator)
main
Pullusb 2021-11-11 14:48:53 +01:00
parent 4bdd6e9fb9
commit 046c60cec6
3 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Activate / deactivate all masks using MA layers
0.6.7 0.6.7
- fix: export json crop use scene name instead of first found GP. - fix: export json crop use scene name instead of first found GP.
- fix: scene.name lowercased when set in outputfile name (using reset settings operator)
0.6.6 0.6.6

View File

@ -230,7 +230,7 @@ class GPEXP_OT_reset_render_settings(bpy.types.Operator):
# - allow to monitor output of a scene and possibly use Overwrite # - allow to monitor output of a scene and possibly use Overwrite
if scn.render.filepath.startswith('//render/preview/'): if scn.render.filepath.startswith('//render/preview/'):
scn.render.filepath = f'//render/preview/{bpy.path.clean_name(scn.name)}/preview_' scn.render.filepath = f'//render/preview/{bpy.path.clean_name(scn.name.lower())}/preview_'
print(f'Scene {scn.name}: change output to {scn.render.filepath}') print(f'Scene {scn.name}: change output to {scn.render.filepath}')
if not scn.use_nodes: if not scn.use_nodes:

5
fn.py
View File

@ -1067,6 +1067,11 @@ def split_object_to_scene():
new = bpy.context.scene new = bpy.context.scene
new.name = scene_name new.name = scene_name
## OPT
## set individual output for composite or go in /tmp ? (might not be needed)
# new.render.filepath = f'//render/preview/{bpy.path.clean_name(new.name.lower())}/preview_'
# new.render.filepath = f'/tmp/'
## unlink unwanted objects from collection ## unlink unwanted objects from collection
all_col = [new.collection] all_col = [new.collection]
all_col += get_collection_childs_recursive(new.collection) all_col += get_collection_childs_recursive(new.collection)