Skip to main content
added 411 characters in body
Source Link
Noob Cat
  • 1.4k
  • 3
  • 25
  • 67

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:

enter image description here

Now set the Context object to Texture Paint mode:

enter image description here

Check the image_paint.brush:

enter image description here

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?

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:

enter image description here

Now set the Context object to Texture Paint mode:

enter image description here

Check the image_paint.brush:

enter image description here

Source Link
Noob Cat
  • 1.4k
  • 3
  • 25
  • 67

How to change paint brush in Blender 4.3 with python?

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?