UserAssetLibrary(bpy_struct)
base class — bpy_struct
- class bpy.types.UserAssetLibrary(bpy_struct)
Settings to define a reusable library for Asset Browsers to use
- import_method
Determine how the asset will be imported, unless overridden by the Asset Browser
LINKLink – Import the assets as linked data-block.APPENDAppend – Import the assets as copied data-block, with no link to the original asset data-block.APPEND_REUSEAppend (Reuse Data) – Import the assets as copied data-block while avoiding multiple copies of nested, typically heavy data. For example the textures of a material asset, or the mesh of an object asset, don’t have to be copied every time this asset is imported. The instances of the asset share the data instead..PACKPack – Import the asset as linked data-block, and pack it in the current file (ensures that it remains unchanged in case the library data is modified, is not available anymore, etc.).
- Type:
enum in [
'LINK','APPEND','APPEND_REUSE','PACK'], default"'PACK'"
- name
Identifier (not necessarily unique) for the asset library
- Type:
string, default “”, (never None)
- path
Path to a directory with .blend files to use as an asset library
- Type:
string, default “”, (never None)
- use_relative_path
Use relative path when linking assets from this asset library
- Type:
boolean, default True
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
bpy.types.Structsubclass
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type