Now, on to the bone pose slider project for Blender.

Again, thanks for the coding help that the community provided.


Moderators: jesterKing, stiv
There are two ways to handle this. You could add a callback function (search for uiButSetFunc ) or you could handle ADD_SLIDER case in event handler of the panel (check how vertex groups are added). Event handler functions are normally called as do_foo(unsigned short event).uiDefBut(block, BUT,ADD_SLIDER, "Add Slider" , 10, 180, 150, 20, NULL, 0.0, 0.0, 0, 0, "Add new bone control sliders");
This is a panel button function.Can ayone tell me how to get the numrical value out of this button after it has been clicked?
I need to obtain the value for a flag in an if() statement.