Blender Kitsu: Refactor Shot Builder #183
@ -6,8 +6,11 @@ from blender_kitsu.types import (
|
|||||||
Shot,
|
Shot,
|
||||||
TaskType,
|
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:
|
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:
|
Returns:
|
||||||
Path: Returns Path for Shot Directory
|
Path: Returns Path for Shot Directory
|
||||||
"""
|
"""
|
||||||
addon_prefs = prefs.addon_prefs_get(bpy.context)
|
project_root_dir = get_project_root_path()
|
||||||
project_root_dir = Path(addon_prefs.project_root_dir).resolve()
|
|
||||||
all_shots_dir = project_root_dir.joinpath('pro').joinpath('shots')
|
all_shots_dir = project_root_dir.joinpath('pro').joinpath('shots')
|
||||||
shot_dir = all_shots_dir.joinpath(seq.name).joinpath(shot.name)
|
shot_dir = all_shots_dir.joinpath(seq.name).joinpath(shot.name)
|
||||||
if not shot_dir.exists():
|
if not shot_dir.exists():
|
||||||
|
Loading…
Reference in New Issue
Block a user