Blender sculpt brush UI buttons I've been playing around with Blender's UI recently to see if I can find ways to make my workflow a bit easier, and also just for fun. My goal is to create UI buttons to change the sculpt brush. I'm very new at scripting though and don't know how to do most of this or if it's even possible.

I've looked at the api and found "active_index_set" but I don't know if that's the operator to call and if it is I don't know how to get it the parameters it needs to set the brush. I've looked at IK3d's brushes addon to see how he got the buttons to change the brush, and it looks like he used a list somehow. For what I'm doing custom this doesn't need to work with custom brushes as from what I've read so far that would complicate it a lot.

Any help would be great, even if it't just a point in the right direction.
edit: I wrote up an addon that creates a panel in the tool bar that you can drag into position above the brush panel - it polls for whether you have an object in sculpt mode or not. I made separate classes for each of the brushes so I could place them in 3 rows of 6 icons.