Up until Blender 4.2 I could change my brush like this:
my_brush = D.brushes['my_brush']
C.tool_settings.image_paint.brush = my_brush
Now in Blender 4.3 with the advent of the asset browser also in Brushes, I can't figure out how to change the Brush.
Any ideas? Do I have to use the bpy.ops.brush.asset_activate()
operator?
To test this, do the following.
In Object mode:
Now set the Context object to Texture Paint mode:
Check the image_paint.brush: