Blender Kitsu: Refactor Shot Builder #183
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user