UserAssetLibrary(bpy_struct)

base class — bpy_struct

class bpy.types.UserAssetLibrary(bpy_struct)

Settings to define a reusable library for Asset Browsers to use

enabled

Enable the asset library (default True)

Type:

bool

import_method

Determine how the asset will be imported, unless overridden by the Asset Browser (default 'PACK')

  • LINK Link – Import the assets as linked data-block.

  • APPEND Append – Import the assets as copied data-block, with no link to the original asset data-block.

  • APPEND_REUSE Append (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..

  • PACK Pack – 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:

Literal[‘LINK’, ‘APPEND’, ‘APPEND_REUSE’, ‘PACK’]

name

Identifier (not necessarily unique) for the asset library (default “”, never None)

Type:

str

path

Path to a directory with .blend files to use as an asset library (default “”, never None)

Type:

str

remote_url

Remote URL to the asset library (default “”, never None)

Type:

str

use_relative_path

Use relative path when linking assets from this asset library (default True)

Type:

bool

use_remote_url

Synchronize the asset library with a remote URL (default False, readonly)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References