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
Showing only changes of commit 9592c2b491 - Show all commits

View File

@ -10,16 +10,6 @@ from blender_kitsu.types import (
from blender_kitsu import bkglobals, prefs from blender_kitsu import bkglobals, prefs
def get_task_type(task_type: TaskType) -> str:
for key, value in bkglobals.SHOT_TASK_MAPPING.items():
if value == task_type.name:
return key
def get_shot_task_name(shot: Shot, task_type: TaskType) -> str:
return f"{shot.name}{bkglobals.FILE_DELIMITER}{get_task_type(task_type)}"
def get_file_dir(seq: Sequence, shot: Shot, task_type: TaskType) -> Path: def get_file_dir(seq: Sequence, shot: Shot, task_type: TaskType) -> Path:
"""Returns Path to Directory for Current Shot, will ensure that """Returns Path to Directory for Current Shot, will ensure that
file path exists if it does not. file path exists if it does not.