Added global checks to popup and then launch individual checks

0.5.1
This commit is contained in:
pullusb
2025-07-23 14:30:44 +02:00
parent c33eab6f32
commit 373ed201d3
5 changed files with 84 additions and 39 deletions
+23 -8
View File
@@ -14,13 +14,17 @@ class RT_PT_render_toolbox_ui(Panel):
layout.operator("rt.create_output_layers", icon="NODE")
layout.operator("rt.outputs_search_and_replace", text='Search and replace outputs', icon="BORDERMOVE")
class RT_PT_visibility_check(Panel):
bl_space_type = "NODE_EDITOR"
# Base panel for drawing
class RT_PT_visibility_check_ui_base(bpy.types.Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Render" # Wrangler
bl_category = "View"
bl_label = "Visibility Checks"
# bl_parent_id = "RT_PT_render_toolbox_ui"
# bl_options = {'DEFAULT_CLOSED'}
bl_options = {'DEFAULT_CLOSED'}
def draw_header_preset(self, context):
layout = self.layout
layout.operator('rt.scene_checker', text="", icon='CHECKMARK') #, depress=True
def draw(self, context):
layout = self.layout
@@ -31,14 +35,24 @@ class RT_PT_visibility_check(Panel):
layout.operator("rt.list_modifier_visibility", text="List Modifiers Visibility Conflicts", icon="MODIFIER")
layout.operator("rt.list_collection_visibility_conflicts", text="List Collections Visibility Conflicts", icon="OUTLINER_COLLECTION")
layout.separator()
layout.operator("rt.list_object_affected_by_simplify", text="List Object Affected By Simplify", icon="MOD_SIMPLIFY")
class RT_PT_visibility_check_ui_viewport(RT_PT_visibility_check_ui_base):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "View"
class RT_PT_visibility_check_ui_node(RT_PT_visibility_check_ui_base):
bl_space_type = 'NODE_EDITOR'
# bl_parent_id = "RT_PT_render_toolbox_ui"
bl_region_type = 'UI'
bl_category = "Render" # Wrangler ?
## Unused, only exposed in Create output panel
class RT_PT_output_template(Panel):
bl_space_type = "NODE_EDITOR"
bl_space_type = "3D_VIEW"
bl_region_type = "UI"
bl_category = "Render" # Wrangler
bl_label = "File Output Templates"
@@ -65,8 +79,9 @@ class RT_PT_output_template(Panel):
classes = (
RT_PT_render_toolbox_ui,
RT_PT_visibility_check_ui_viewport,
RT_PT_visibility_check_ui_node
# RT_PT_output_template,
RT_PT_visibility_check,
)
def register():