Blender Kitsu: Refactor Shot Builder #183

Merged
Nick Alberelli merged 55 commits from TinyNick/blender-studio-pipeline:feature/shot-builder-2 into main 2023-12-21 23:58:21 +01:00
2 changed files with 1 additions and 13 deletions
Showing only changes of commit 037fb75359 - Show all commits

View File

@ -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':

View File

@ -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
): ):