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 cb7886db6b - Show all commits

View File

@ -6,8 +6,11 @@ from blender_kitsu.types import (
Shot,
TaskType,
)
from blender_kitsu import prefs
from blender_kitsu import bkglobals, prefs
def get_project_root_path() -> Path:
addon_prefs = prefs.addon_prefs_get(bpy.context)
return Path(addon_prefs.project_root_dir).resolve()
def get_file_dir(seq: Sequence, shot: Shot, task_type: TaskType) -> Path:
@ -22,8 +25,7 @@ def get_file_dir(seq: Sequence, shot: Shot, task_type: TaskType) -> Path:
Returns:
Path: Returns Path for Shot Directory
"""
addon_prefs = prefs.addon_prefs_get(bpy.context)
project_root_dir = Path(addon_prefs.project_root_dir).resolve()
project_root_dir = get_project_root_path()
all_shots_dir = project_root_dir.joinpath('pro').joinpath('shots')
shot_dir = all_shots_dir.joinpath(seq.name).joinpath(shot.name)
if not shot_dir.exists():