From 6e5cb5164675340c2cb4812d22a1135488c42f49 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Tue, 28 Sep 2021 11:01:49 +0200 Subject: [PATCH] fix unskip pdf muted output 0.4.1 - fix: pdf output not skiiping muted nodes --- OP_render_pdf.py | 12 +++++++++--- __init__.py | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/OP_render_pdf.py b/OP_render_pdf.py index c4f33a1..49addfc 100644 --- a/OP_render_pdf.py +++ b/OP_render_pdf.py @@ -219,6 +219,12 @@ class GPEXP_OT_export_as_pdf(bpy.types.Operator): messages.append(mess) continue + if fo_node.mute: + mess = f'Skip {vl_name}: output is muted {fo_node.name}' + print(mess) + messages.append(mess) + continue + # fo_socket.name isn't right idx = [i for i in fo_node.inputs].index(fo_socket) @@ -253,9 +259,9 @@ class GPEXP_OT_export_as_pdf(bpy.types.Operator): # for oviz in obj_vis: # oviz[0].hide_viewport = oviz[1] - - self.report({'INFO'}, f'Done ({time()-t0:.1f}s)') - fn.show_message_box(_message=messages, _title='PDF render report') + print(f'Done ({time()-t0:.1f}s)') + # self.report({'INFO'}, f'Done ({time()-t0:.1f}s)') + fn.show_message_box(_message=messages, _title=f'PDF render report ({time()-t0:.1f}s)') return {"FINISHED"} diff --git a/__init__.py b/__init__.py index 398a2cb..7107122 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, 4, 0), + "version": (0, 4, 1), "blender": (2, 93, 0), "location": "View3D", "warning": "",