Add manual env template loading
This commit is contained in:
parent
37a9e0ca43
commit
74598b1414
@ -272,8 +272,7 @@ class RT_OT_create_output_layers(bpy.types.Operator):
|
||||
description="Template for file output file slots\
|
||||
\nSubpath added to base path for file sequence",
|
||||
default="{socket_name}/{socket_name}_",
|
||||
update=update_template_file_slot,
|
||||
# options={'SKIP_SAVE'}
|
||||
# update=update_template_file_slot,
|
||||
)
|
||||
|
||||
## Multilayer's layer: layer name in EXR instead of subpath to file
|
||||
@ -282,8 +281,7 @@ class RT_OT_create_output_layers(bpy.types.Operator):
|
||||
description="Template for multilayer file output layer names\
|
||||
\nLayer name in EXR multilayer file",
|
||||
default="{socket_name}",
|
||||
update=update_template_multilayer_name,
|
||||
# options={'SKIP_SAVE'}
|
||||
# update=update_template_multilayer_name,
|
||||
)
|
||||
|
||||
## extra suffix passes (unused)
|
||||
@ -402,6 +400,11 @@ class RT_OT_create_output_layers(bpy.types.Operator):
|
||||
col = box.column()
|
||||
row = col.row(align=True)
|
||||
row.prop(self, 'use_base_path_templates')
|
||||
|
||||
if self.use_base_path_templates:
|
||||
row.operator("rt.set_env_settings", text='', icon='FILE_REFRESH')
|
||||
row.separator()
|
||||
|
||||
row.operator("rt.info_note", text='', icon='INFO').text = """Format the base path using templates.
|
||||
Possible variables:
|
||||
{node_name} : name of the node
|
||||
|
@ -103,7 +103,8 @@ class RT_set_env_settings(bpy.types.Operator):
|
||||
|
||||
classes = (
|
||||
RT_OT_select_object_by_name,
|
||||
RT_OT_info_note
|
||||
RT_OT_info_note,
|
||||
RT_set_env_settings,
|
||||
)
|
||||
|
||||
|
||||
|
@ -77,7 +77,7 @@ def register():
|
||||
bpy.utils.register_class(cls)
|
||||
|
||||
bpy.types.Scene.render_toolbox = bpy.props.PointerProperty(type=RT_PG_render_toolbox_props)
|
||||
set_env_properties()
|
||||
# set_env_properties() # restricted context error when trying assignation here (probably need handler)
|
||||
|
||||
def unregister():
|
||||
del bpy.types.Scene.render_toolbox
|
||||
|
Loading…
x
Reference in New Issue
Block a user