bpy_extras submodule (bpy_extras.asset_utils)

Helpers for asset management tasks.

class bpy_extras.asset_utils.AssetBrowserPanel

Mixin class for panels that should only show in the asset browser.

classmethod asset_browser_panel_poll(context)

Check if the panel should be shown in the asset browser.

Parameters:

context (bpy.types.Context) – The context.

Returns:

True when the panel should be visible.

Return type:

bool

classmethod poll(context)

Poll for asset browser visibility.

Parameters:

context (bpy.types.Context) – The context.

Returns:

True when the panel should be visible.

Return type:

bool

class bpy_extras.asset_utils.AssetMetaDataPanel

Mixin class for panels that display asset metadata in the asset browser.

classmethod poll(context)

Poll for asset browser with active asset metadata.

Parameters:

context (bpy.types.Context) – The context.

Returns:

True when the asset browser has active asset data.

Return type:

bool

class bpy_extras.asset_utils.SpaceAssetInfo

Utility class for checking if a space is an asset browser.

classmethod is_asset_browser(space_data)

Check if the given space is an asset browser.

Parameters:

space_data (bpy.types.Space) – The space to check.

Returns:

True when the space is an asset browser.

Return type:

bool

classmethod is_asset_browser_poll(context)

Poll whether the active space is an asset browser.

Parameters:

context (bpy.types.Context) – The context.

Returns:

True when the active space is an asset browser.

Return type:

bool