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

View File

@ -6,7 +6,7 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
""" """
class ASSET_NEW(bpy.types.PropertyGroup): class AssetNew(bpy.types.PropertyGroup):
"""Properties needed to create new asset file/folders""" """Properties needed to create new asset file/folders"""
dir: bpy.props.StringProperty( dir: bpy.props.StringProperty(
@ -17,7 +17,7 @@ class ASSET_NEW(bpy.types.PropertyGroup):
name: bpy.props.StringProperty(name="Name", description="Name for new Asset") name: bpy.props.StringProperty(name="Name", description="Name for new Asset")
class ASSET_FILE_STATUS(bpy.types.PropertyGroup): class AssetFileStatus(bpy.types.PropertyGroup):
"""Properties to manage the status of asset pipeline files""" """Properties to manage the status of asset pipeline files"""
is_asset_pipeline_file: bpy.props.BoolProperty( is_asset_pipeline_file: bpy.props.BoolProperty(
@ -36,7 +36,7 @@ class ASSET_FILE_STATUS(bpy.types.PropertyGroup):
from . import constants from . import constants
class ASSET_TRANSFER_DATA(bpy.types.PropertyGroup): class AssetTransferData(bpy.types.PropertyGroup):
"""Properties to track transferable data on an object""" """Properties to track transferable data on an object"""
owner: bpy.props.EnumProperty( owner: bpy.props.EnumProperty(
@ -49,7 +49,7 @@ class ASSET_TRANSFER_DATA(bpy.types.PropertyGroup):
) )
class ASSET_TRANSFER_DATA_TEMP(bpy.types.PropertyGroup): class AssetTransferDataTemp(bpy.types.PropertyGroup):
"""Class used when finding new ownership data so it can be drawn """Class used when finding new ownership data so it can be drawn
with the same method as the existing ownership data from ASSET_TRANSFER_DATA""" with the same method as the existing ownership data from ASSET_TRANSFER_DATA"""
@ -65,10 +65,10 @@ class ASSET_TRANSFER_DATA_TEMP(bpy.types.PropertyGroup):
classes = ( classes = (
ASSET_TRANSFER_DATA, AssetTransferData,
ASSET_FILE_STATUS, AssetFileStatus,
ASSET_TRANSFER_DATA_TEMP, AssetTransferDataTemp,
ASSET_NEW, AssetNew,
) )
@ -76,17 +76,17 @@ def register():
for i in classes: for i in classes:
bpy.utils.register_class(i) bpy.utils.register_class(i)
bpy.types.Object.transfer_data_ownership = bpy.props.CollectionProperty( bpy.types.Object.transfer_data_ownership = bpy.props.CollectionProperty(
type=ASSET_TRANSFER_DATA type=AssetTransferData
) )
bpy.types.Scene.temp_transfer_data_ownership = bpy.props.CollectionProperty( bpy.types.Scene.temp_transfer_data_ownership = bpy.props.CollectionProperty(
type=ASSET_TRANSFER_DATA_TEMP type=AssetTransferDataTemp
) )
bpy.types.Scene.asset_status = bpy.props.PointerProperty(type=ASSET_FILE_STATUS) bpy.types.Scene.asset_status = bpy.props.PointerProperty(type=AssetFileStatus)
bpy.types.Object.asset_id_owner = bpy.props.EnumProperty( bpy.types.Object.asset_id_owner = bpy.props.EnumProperty(
name="ID Owner", name="ID Owner",
items=constants.TASK_LAYER_TYPES, items=constants.TASK_LAYER_TYPES,
) )
bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=ASSET_NEW) bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=AssetNew)
def unregister(): def unregister():