Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
3 changed files with 9 additions and 1 deletions
Showing only changes of commit 249f1950cd - Show all commits

View File

@ -3,6 +3,8 @@
# You could even choose to name your task layers after artists in your team.
# {Task Layer Key: Collection/UI name}
ADDON_NAME = "asset_pipeline_2"
TASK_LAYER_CONFIG_NAME = "task_layers.json"
TASK_LAYER_CONFIG_DIR_NAME = "task_layer_configs"

View File

@ -1,4 +1,9 @@
import bpy
from . import constants
def get_addon_prefs():
return bpy.context.preferences.addons[constants.ADDON_NAME].preferences
class ASSET_PIPELINE_addon_preferences(bpy.types.AddonPreferences):

View File

@ -3,6 +3,7 @@ from . import constants
from .merge.task_layer import get_local_task_layers
from .config import get_task_layer_presets_path
from pathlib import Path
from .prefs import get_addon_prefs
""" NOTE Items in these properties groups should be generated by a function that finds the
avaliable task layers from the task_layer_defaults.json file that needs to be created.
@ -10,7 +11,7 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
def get_task_layer_presets(self, context):
prefs = context.preferences.addons["asset_pipeline_2"].preferences
prefs = get_addon_prefs()
user_tls = Path(prefs.custom_task_layers_dir)
presets_dir = get_task_layer_presets_path()