user: Show practical ways to work with Bpy.Types.Assetshelf in a Blender add-on or script – include code.

assistant: boolean, default False filter_particle_settings ¶ Show Particle Settings data-blocks Type : boolean, default False filter_pointcloud ¶ Show/hide Point Cloud data-blocks Type : boolean, default False filter_scene ¶ Show Scene data-blocks Type : boolean, default False filter_sound ¶ Show Sound data-blocks Type : boolean, default False filter_speaker ¶ Show Speaker data-blocks Type : boolean, default False filter_text ¶ Show Text data-blocks Type : boolean, default False filter_texture ¶ Show Texture data-blocks Type : boolean, default False filter_volume ¶ Show/hide Volume data-blocks Type : boolean, default False filter_work_space ¶ Show workspace data-blocks Type : boolean, default False filter_world ¶ Show World data-blocks Type : boolean, default False 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 classmethod get_active_asset ( ) ¶ Return a reference to the asset that should be highlighted as active in the asset shelf Returns : The weak reference to the asset to be highlighted as active, or None Return type : AssetWeakReference classmethod draw_context_menu ( context , asset , layout ) ¶ Draw UI elements into the context menu UI layout displayed on right click 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.Struct subclass 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 Inherited Properties ¶ bpy_struct.id_data Inherited Functions ¶ bpy_struct.as_pointer bpy_struct.driver_add bpy_struct.driver_remove bpy_struct.get bpy_struct.id_properties_clear bpy_struct.id_properties_ensure bpy_struct.id_properties_ui bpy_struct.is_property_hidden bpy_struct.is_property_overridable_library bpy_struct.is_property_readonly bpy_struct.is_property_set bpy_struct.items bpy_struct.keyframe_delete bpy_struct.keyframe_insert bpy_struct.keys bpy_struct.path_from_id bpy_struct.path_from_module bpy_struct.path_resolve bpy_struct.pop bpy_struct.property_overridable_library_set bpy_struct.property_unset bpy_struct.rna_ancestors bpy_struct.type_recast bpy_struct.values Next AssetTag(bpy_struct) Previous AssetRepresentation(bpy_struct) Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page AssetShelf(bpy_struct) AssetShelf AssetShelf.asset_library_reference AssetShelf.bl_activate_operator AssetShelf.bl_default_preview_size AssetShelf.bl_drag_operator AssetShelf.bl_idname AssetShelf.bl_options AssetShelf.bl_space_type AssetShelf.filter_action AssetShelf.filter_annotations AssetShelf.filter_armature AssetShelf.filter_brush AssetShelf.filter_cachefile AssetShelf.filter_camera AssetShelf.filter_curve AssetShelf.filter_curves AssetShelf.filter_font AssetShelf.filter_grease_pencil AssetShelf.filter_group AssetShelf.filter_image AssetShelf.filter_lattice AssetShelf.filter_light AssetShelf.filter_light_probe AssetShelf.filter_linestyle AssetShelf.filter_mask AssetShelf.filter_material AssetShelf.filter_mesh AssetShelf.filter_metaball AssetShelf.filter_movie_clip AssetShelf.filter_node_tree AssetShelf.filter_object AssetShelf.filter_paint_curve AssetShelf.filter_palette AssetShelf.filter_particle_settings AssetShelf.filter_pointcloud AssetShelf.filter_scene AssetShelf.filter_sound AssetShelf.filter_speaker AssetShelf.filter_text AssetShelf.filter_texture AssetShelf.filter_volume AssetShelf.filter_work_space AssetShelf.filter_world AssetShelf.preview_size AssetShelf.search_filter AssetShelf.show_names AssetShelf.poll() AssetShelf.asset_poll() AssetShelf.get_active_asset() AssetShelf.draw_context_menu() AssetShelf.bl_rna_get_subclass() AssetShelf.bl_rna_get_subclass_py() Inherited Properties Inherited Functions