Python Weight Painting Brush Plugin Questions
-
Howdy,
I have some scripts that manipulate joint weighting, and one of them I would like to maybe push myself towards trying to make it a brush type plugin...thing. Unfortunately, I don't really know where to begin with that so I have some questions for getting started.
-
What plugin type should this be? Would it be a SculptBrushToolData or no since it wouldn't be actually affecting or manipulating the points on the mesh themselves?
-
If it shouldn't be SculptBrushToolData, then what plugin type should it be?
If anyone can point me in the right direction for where to being with some of that, it would be greatly appreciated. My idea basically just needs to get whatever verts are within the radius of the brush and then run the command, and potentially continue to run the command. So It would likely have a radius, no falloff, and then possibly a checkbox or two for some specific flags.
-
-
Hi @BretBays this is correct, if you want to make a Brush the easiest way is to register a
SculptBrushToolData
, you can find examples in Python in Github or in C++ in Github.SculptBrushToolData is derived from DescriptionToolData, meaning they can have a description visible in the attribute manager and therefor you can add your own checkbox if needed.
Cheers,
Maxime.