Asset Pipeline v2 #145
@ -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):
|
class ASSET_STATUS(bpy.types.PropertyGroup):
|
||||||
is_asset_pipeline_file: bpy.props.BoolProperty(
|
is_asset_pipeline_file: bpy.props.BoolProperty(
|
||||||
name="Asset Pipeline File",
|
name="Asset Pipeline File",
|
||||||
@ -49,7 +58,12 @@ class TEMP_ASSETOWNERSHIP(bpy.types.PropertyGroup):
|
|||||||
obj: bpy.props.PointerProperty(type=bpy.types.Object)
|
obj: bpy.props.PointerProperty(type=bpy.types.Object)
|
||||||
|
|
||||||
|
|
||||||
classes = (ASSETOWNERSHIP, ASSET_STATUS, TEMP_ASSETOWNERSHIP)
|
classes = (
|
||||||
|
ASSETOWNERSHIP,
|
||||||
|
ASSET_STATUS,
|
||||||
|
TEMP_ASSETOWNERSHIP,
|
||||||
|
NEW_ASSET,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
@ -66,6 +80,7 @@ def register():
|
|||||||
name="ID Owner",
|
name="ID Owner",
|
||||||
items=constants.TASK_LAYER_ITEMS,
|
items=constants.TASK_LAYER_ITEMS,
|
||||||
)
|
)
|
||||||
|
bpy.types.Scene.asset_new = bpy.props.PointerProperty(type=NEW_ASSET)
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
@ -73,3 +88,6 @@ def unregister():
|
|||||||
bpy.utils.unregister_class(i)
|
bpy.utils.unregister_class(i)
|
||||||
del bpy.types.Object.transfer_data_ownership
|
del bpy.types.Object.transfer_data_ownership
|
||||||
del bpy.types.Scene.temp_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
|
||||||
|
Loading…
Reference in New Issue
Block a user