Asset Pipeline v2 #145
@ -146,3 +146,15 @@ def get_task_layer_col_name(task_layer_key) -> str:
|
|||||||
"""
|
"""
|
||||||
task_layer_name = constants.TASK_LAYER_TYPES[task_layer_key]
|
task_layer_name = constants.TASK_LAYER_TYPES[task_layer_key]
|
||||||
return get_name_with_asset_prefix(task_layer_name)
|
return get_name_with_asset_prefix(task_layer_name)
|
||||||
|
|
||||||
|
|
||||||
|
def get_id_type_name(id_type: bpy.types) -> str:
|
||||||
|
"""Return the cosmetic name of a given ID type
|
||||||
|
|
||||||
|
Args:
|
||||||
|
id_type (bpy.types): An ID type e.g. bpy.types.Object
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
str: Name of an ID type e.g. bpy.types.Object will return 'Object'
|
||||||
|
"""
|
||||||
|
return str(id_type).split("'bpy_types.")[1].replace("'>", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user