VIEW3D_AST_brush_texture_paint(AssetShelf)
base classes — bpy_struct, AssetShelf
- class bpy.types.VIEW3D_AST_brush_texture_paint(AssetShelf)
- classmethod brush_type_poll(context, asset)
Test if asset is compatible with the active tool’s brush type.
- Parameters:
context (
bpy.types.Context) – The context.asset (
bpy.types.AssetRepresentation) – Brush asset to test.
- Returns:
True when the asset’s brush type matches the active tool.
- Return type:
bool
- static draw_popup_selector(layout, context, brush, show_name=True)
Draw a brush asset-shelf popover into layout for the active paint mode.
- Parameters:
layout (
bpy.types.UILayout) – Layout to draw into.context (
bpy.types.Context) – The context.brush (
bpy.types.Brush| None) – Brush whose preview/name is shown on the button.show_name (bool) – Display the brush name next to the preview.
- static get_shelf_name_from_context(context)
Look up the brush asset-shelf identifier for the current paint mode.
- Parameters:
context (
bpy.types.Context) – The context.- Returns:
The asset-shelf
bl_idname, orNonewhen no paint mode is active.- Return type:
str | None
- classmethod has_tool_with_brush_type(context, brush_type)
Test if any tool active in the current space matches brush_type.
- Parameters:
context (
bpy.types.Context) – The context.brush_type (int) – Brush type identifier to match against tool brush types.
- Returns:
True when a registered tool uses this brush type.
- Return 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:
- 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