Initial code for collection confo operator

This commit is contained in:
pullusb
2025-07-24 14:46:22 +02:00
parent ffd0fcf90c
commit 22e97d63ca
4 changed files with 262 additions and 24 deletions
+34 -21
View File
@@ -50,37 +50,50 @@ class RT_PT_visibility_check_ui_node(RT_PT_visibility_check_ui_base):
bl_region_type = 'UI'
bl_category = "Render" # Wrangler ?
## Unused, only exposed in Create output panel
class RT_PT_output_template(Panel):
bl_space_type = "3D_VIEW"
class RT_PT_conformation_ui(bpy.types.Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Render" # Wrangler
bl_label = "File Output Templates"
bl_parent_id = "RT_PT_render_toolbox_ui"
# bl_options = {'DEFAULT_CLOSED'}
bl_category = "View"
bl_label = "Conformation"
bl_options = {'DEFAULT_CLOSED'}
def draw(self, context):
layout = self.layout
settings = context.scene.render_toolbox
col = layout.column(align=True)
col.label(text='Single file:')
col.prop(settings, "default_base_path", text="Base Path")
col.prop(settings, "default_file_slot", text="File Slot")
col.separator()
col = layout.column(align=True)
col.label(text='Multilayers:')
col.prop(settings, "default_multilayer_base_path", text="Base Path")
col.prop(settings, "default_multilayer_name", text="Layer Name")
layout.operator("rt.conform_collection_hierarchy",
text="Conform Collection Hierarchy", icon="OUTLINER_COLLECTION")
## Handle separate tech passes names ?
## Unused, only exposed in Create output panel
# class RT_PT_output_template(Panel):
# bl_space_type = "3D_VIEW"
# bl_region_type = "UI"
# bl_category = "Render" # Wrangler
# bl_label = "File Output Templates"
# bl_parent_id = "RT_PT_render_toolbox_ui"
# # bl_options = {'DEFAULT_CLOSED'}
# def draw(self, context):
# layout = self.layout
# settings = context.scene.render_toolbox
# col = layout.column(align=True)
# col.label(text='Single file:')
# col.prop(settings, "default_base_path", text="Base Path")
# col.prop(settings, "default_file_slot", text="File Slot")
# col.separator()
# col = layout.column(align=True)
# col.label(text='Multilayers:')
# col.prop(settings, "default_multilayer_base_path", text="Base Path")
# col.prop(settings, "default_multilayer_name", text="Layer Name")
# ## Handle separate tech passes names ?
classes = (
RT_PT_render_toolbox_ui,
RT_PT_visibility_check_ui_viewport,
RT_PT_visibility_check_ui_node
RT_PT_visibility_check_ui_node,
RT_PT_conformation_ui,
# RT_PT_output_template,
)