Blender Kitsu: Refactor Shot Builder #183
@ -214,9 +214,6 @@ class KITSU_OT_build_new_shot(bpy.types.Operator):
|
|||||||
set_resolution_and_fps(active_project, scene)
|
set_resolution_and_fps(active_project, scene)
|
||||||
set_frame_range(shot, scene)
|
set_frame_range(shot, scene)
|
||||||
|
|
||||||
# File Path
|
|
||||||
# TODO Only run if saving file
|
|
||||||
|
|
||||||
# Set Render Settings
|
# Set Render Settings
|
||||||
if task_type_short_name == 'anim': # TODO get anim from a constant instead
|
if task_type_short_name == 'anim': # TODO get anim from a constant instead
|
||||||
set_render_engine(context.scene, 'BLENDER_WORKBENCH')
|
set_render_engine(context.scene, 'BLENDER_WORKBENCH')
|
||||||
@ -225,7 +222,7 @@ class KITSU_OT_build_new_shot(bpy.types.Operator):
|
|||||||
|
|
||||||
# Create Output Collection & Link Camera
|
# Create Output Collection & Link Camera
|
||||||
if bkglobals.OUTPUT_COL_CREATE.get(task_type_short_name):
|
if bkglobals.OUTPUT_COL_CREATE.get(task_type_short_name):
|
||||||
output_col = create_task_type_output_collection( # TODO imporve
|
output_col = create_task_type_output_collection(
|
||||||
context.scene, shot, task_type
|
context.scene, shot, task_type
|
||||||
)
|
)
|
||||||
if task_type_short_name == 'anim':
|
if task_type_short_name == 'anim':
|
||||||
|
@ -19,15 +19,6 @@ def get_template_for_task_type(task_type_short_name: str) -> Path:
|
|||||||
return file
|
return file
|
||||||
|
|
||||||
|
|
||||||
def open_template_for_task_type(task_type_short_name: str) -> bool:
|
|
||||||
# TODO THIS DOESN'T WORK BECAUSE CHANGE THE OPEN FILE MESSES UP THE CONTEXT SOMEHOW
|
|
||||||
file_path = get_template_for_task_type(task_type_short_name)
|
|
||||||
if file_path.exists() and file_path is not None:
|
|
||||||
bpy.ops.wm.open_mainfile('EXEC_DEFAULT', filepath=file_path.__str__())
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def replace_workspace_with_template(
|
def replace_workspace_with_template(
|
||||||
context: bpy.types.Context, task_type_short_name: str
|
context: bpy.types.Context, task_type_short_name: str
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user