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.
2 changed files with 17 additions and 9 deletions
Showing only changes of commit 41fe7220ad - Show all commits

View File

@ -5,3 +5,9 @@ TASK_LAYER_ITEMS = [
("MODEL", "Modeling", ""), ("MODEL", "Modeling", ""),
("RIG", "Rigging", ""), ("RIG", "Rigging", ""),
] ]
TRANSFER_DATA_TYPES = [
("NONE", "None", ""),
("VERTEX_GROUP", "Vertex Group", ""),
("MODIFIER", "Modifier", ""),
]

View File

@ -6,16 +6,18 @@ avaliable task layers from the task_layer_defaults.json file that needs to be cr
""" """
from . import constants from . import constants
class ASSETOWNERSHIP(bpy.types.PropertyGroup):
owner: bpy.props.StringProperty(name="Transfer Data Owner", default="")
type: bpy.props.StringProperty(name="Transfer Data Type", default="")
id: bpy.props.PointerProperty(type=bpy.types.Object)
# TODO USE ENUM FOR TRANSFER DATA TYPE
# type: bpy.props.EnumProperty( class ASSETOWNERSHIP(bpy.types.PropertyGroup):
# name="TD TYPE", owner: bpy.props.EnumProperty(
# items=[("NONE", "None", ""), ("MODEL", "Modeling", ""), ("RIG", "Rigging", "")], name="Transfer Data Owner",
# ) items=constants.TASK_LAYER_ITEMS,
)
type: bpy.props.EnumProperty(
name="Transfer Data Type",
items=constants.TRANSFER_DATA_TYPES,
)
id: bpy.props.PointerProperty(type=bpy.types.Object)
classes = (ASSETOWNERSHIP,) classes = (ASSETOWNERSHIP,)