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