From e64575b60f231480e949dee0d41a7769744c3add Mon Sep 17 00:00:00 2001 From: Pullusb Date: Wed, 27 Oct 2021 16:31:31 +0200 Subject: [PATCH] fix send all gp ops 0.6.2 - fix: problem sending all visible GP --- CHANGELOG.md | 4 ++++ OP_add_layer.py | 2 +- OP_render_scenes.py | 2 +- __init__.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7704a8e..2821794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Activate / deactivate layer opaticty according to prefix Activate / deactivate all masks using MA layers --> +0.6.2 + +- fix: problem sending all visible GP + 0.6.1: - fix: in generated bat use %Username% variable (still limited to studio path model) diff --git a/OP_add_layer.py b/OP_add_layer.py index e37953a..1d81001 100644 --- a/OP_add_layer.py +++ b/OP_add_layer.py @@ -90,7 +90,7 @@ class GPEXP_OT_add_objects_to_render(bpy.types.Operator): # if not scn: # self.report({'ERROR'}, 'Could not found default scene') # return {"CANCELLED"} - export_gp_objects([o for o in scn.objects if o.type == 'GPENCIL' and not o.hide_get()], exclude_list=excludes, scene=scn) + export_gp_objects([o for o in context.scene.objects if o.type == 'GPENCIL' and not o.hide_get()], exclude_list=excludes, scene=scn) return {"FINISHED"} diff --git a/OP_render_scenes.py b/OP_render_scenes.py index 50c2af3..2b1398a 100644 --- a/OP_render_scenes.py +++ b/OP_render_scenes.py @@ -95,7 +95,7 @@ class GPEXP_OT_render_selected_scene(bpy.types.Operator): continue print(f'\n --> Rendering {scn.name}') - # bpy.context.window.scene = scn + # bpy.context.window.scene = scn # no need bpy.ops.render.render(animation=True, scene=scn.name) ct += 1 diff --git a/__init__.py b/__init__.py index eb3c131..0883493 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ bl_info = { "name": "GP Render", "description": "Organise export of gp layers through compositor output", "author": "Samuel Bernou", - "version": (0, 6, 1), + "version": (0, 6, 2), "blender": (2, 93, 0), "location": "View3D", "warning": "",