Blender Kitsu: Refactor Shot Builder #183
@ -147,15 +147,17 @@ class KITSU_OT_build_new_shot(bpy.types.Operator):
|
|||||||
shot_file_path_str = dir.joinpath(shot_task_name).__str__()
|
shot_file_path_str = dir.joinpath(shot_task_name).__str__()
|
||||||
|
|
||||||
# Set Render Settings
|
# Set Render Settings
|
||||||
if (
|
if task_short_name == 'anim': # TODO get anim from a constant instead
|
||||||
task_short_name == 'anim'
|
|
||||||
): # TODO get anim from a constant instead
|
|
||||||
set_render_engine(context.scene, 'BLENDER_WORKBENCH')
|
set_render_engine(context.scene, 'BLENDER_WORKBENCH')
|
||||||
else:
|
else:
|
||||||
set_render_engine(context.scene)
|
set_render_engine(context.scene)
|
||||||
|
|
||||||
if bkglobals.OUTPUT_COL_CREATE.get(task_short_name):
|
if bkglobals.OUTPUT_COL_CREATE.get(task_short_name):
|
||||||
output_col = task_type_output_collection(context.scene, shot, task_type)
|
output_col = task_type_output_collection( # TODO imporve
|
||||||
|
context.scene, shot, task_type
|
||||||
|
)
|
||||||
|
if task_short_name == 'anim':
|
||||||
|
link_camera_rig(context.scene, output_col)
|
||||||
|
|
||||||
print("Create shot with the following details") # TODO Remove
|
print("Create shot with the following details") # TODO Remove
|
||||||
print(f"Seq Name: '{seq.name}' Seq ID: '{self.seq_id}'")
|
print(f"Seq Name: '{seq.name}' Seq ID: '{self.seq_id}'")
|
||||||
|
Loading…
Reference in New Issue
Block a user