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.
Showing only changes of commit 04d31d4230 - Show all commits

View File

@ -6,6 +6,15 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
"""
class NEW_ASSET(bpy.types.PropertyGroup):
dir: bpy.props.StringProperty(
name="Directory",
description="Target Path for new asset files",
subtype="DIR_PATH",
)
name: bpy.props.StringProperty(name="Name", description="Name for new Asset")
class ASSET_STATUS(bpy.types.PropertyGroup):
is_asset_pipeline_file: bpy.props.BoolProperty(
name="Asset Pipeline File",
@ -49,7 +58,12 @@ class TEMP_ASSETOWNERSHIP(bpy.types.PropertyGroup):
obj: bpy.props.PointerProperty(type=bpy.types.Object)
classes = (ASSETOWNERSHIP, ASSET_STATUS, TEMP_ASSETOWNERSHIP)
classes = (
ASSETOWNERSHIP,
ASSET_STATUS,
TEMP_ASSETOWNERSHIP,
NEW_ASSET,
)
def register():
@ -66,6 +80,7 @@ def register():
name="ID Owner",
items=constants.TASK_LAYER_ITEMS,
)
bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=NEW_ASSET)
def unregister():
@ -73,3 +88,6 @@ def unregister():
bpy.utils.unregister_class(i)
del bpy.types.Object.transfer_data_ownership
del bpy.types.Scene.temp_transfer_data_ownership
del bpy.types.Scene.asset_status
del bpy.types.Object.asset_id_owner
del bpy.types.Scene.asset_new