Make "Fill" tool in GP draw mode switch to a proper fill material automatically
Let's say we have 2 materials in an object:
- Foo Stroke
- Foo Fill
When I switch to the "Fill" tool (
bpy.ops.wm.tool_set_by_id(name="builtin_brush.Fill")
) blender should switch active material to
Foo Fill
. (If it exists)
And vice versa, if I switch to the "Draw" tool (
bpy.ops.wm.tool_set_by_id(name="builtin_brush.Draw")
) blender should switch active material to
Foo Stroke
. (If it exists)
I think this would not only speed up the process but help establish the naming convention for GP materials. Maybe it could use the same suffix/prefix detection system from
Symmetrize
operator for bones, but instead detect if materials have
*Fill
,
*Stroke
,
*_Fill
,
*_Stroke
,
*_f
,
*_s
in them?
0 Comments