AssetShelf(bpy_struct)#
base class — bpy_struct
subclasses —
VIEW3D_AST_pose_library
, VIEW3D_AST_sculpt_brushes
- class bpy.types.AssetShelf(bpy_struct)#
Regions for quick access to assets
- asset_library_reference#
Choose the asset library to display assets from
ALL
All – Show assets from all of the listed asset libraries.LOCAL
Current File – Show the assets currently available in this Blender session.ESSENTIALS
Essentials – Show the basic building blocks and utilities coming with Blender.CUSTOM
Custom – Show assets from the asset libraries configured in the Preferences.
- Type:
enum in [‘ALL’, ‘LOCAL’, ‘ESSENTIALS’, ‘CUSTOM’], default ‘ALL’
- bl_idname#
If this is set, the asset gets a custom ID, otherwise it takes the name of the class used to define the asset (for example, if the class name is “OBJECT_AST_hello”, and bl_idname is not set by the script, then bl_idname = “OBJECT_AST_hello”)
- Type:
string, default “”, (never None)
- bl_options#
Options for this asset shelf type
NO_ASSET_DRAG
No Asset Dragging – Disable the default asset dragging on drag events. Useful for implementing custom dragging via custom key-map items.
- Type:
enum set in {‘NO_ASSET_DRAG’}, default {‘NO_ASSET_DRAG’}
- bl_space_type#
The space where the asset shelf is going to be used in
- Type:
enum in Space Type Items, default ‘EMPTY’
- preview_size#
Size of the asset preview thumbnails in pixels
- Type:
int in [32, 256], default 0
- search_filter#
Filter assets by name
- Type:
string, default “”, (never None)
- show_names#
Show the asset name together with the preview. Otherwise only the preview will be visible
- Type:
boolean, default False
- classmethod poll(context)#
If this method returns a non-null output, the asset shelf will be visible
- Return type:
boolean
- classmethod asset_poll(asset)#
Determine if an asset should be visible in the asset shelf. If this method returns a non-null output, the asset will be visible
- Return type:
boolean
Draw UI elements into the context menu UI layout displayed on right click
- classmethod bl_rna_get_subclass(id, default=None)#
- Parameters:
id (string) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
bpy.types.Struct
subclass
- classmethod bl_rna_get_subclass_py(id, default=None)#
- Parameters:
id (string) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type
Inherited Properties
Inherited Functions