Show total of output nodes when muted
0.5.5 - ui: add a _total count_ output file to display when output is mutedmain
parent
b0e4f23424
commit
72f206a885
|
@ -14,6 +14,10 @@ Activate / deactivate layer opaticty according to prefix
|
|||
Activate / deactivate all masks using MA layers
|
||||
-->
|
||||
|
||||
0.5.5
|
||||
|
||||
- ui: add a _total count_ output file to display when output is muted
|
||||
|
||||
0.5.4
|
||||
|
||||
- feat: button to popup a floating panel with viewlayer list for easy check/toggle
|
||||
|
|
|
@ -2,7 +2,7 @@ bl_info = {
|
|||
"name": "GP Render",
|
||||
"description": "Organise export of gp layers through compositor output",
|
||||
"author": "Samuel Bernou",
|
||||
"version": (0, 5, 4),
|
||||
"version": (0, 5, 5),
|
||||
"blender": (2, 93, 0),
|
||||
"location": "View3D",
|
||||
"warning": "",
|
||||
|
|
3
ui.py
3
ui.py
|
@ -47,7 +47,8 @@ class GPEXP_PT_gp_node_ui(Panel):
|
|||
|
||||
disabled_output = [n for n in scn.node_tree.nodes if n.type == 'OUTPUT_FILE' and n.mute]
|
||||
if disabled_output:
|
||||
layout.label(text=f'{len(disabled_output)} Output Muted', icon='INFO')
|
||||
output_ct = len([n for n in scn.node_tree.nodes if n.type == 'OUTPUT_FILE'])
|
||||
layout.label(text=f'{len(disabled_output)}/{output_ct} Output Muted', icon='INFO')
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
|
Loading…
Reference in New Issue