Bones and rotation property sliders I am creating a UI for a rig and I want to have a property on a panel.

The property is a bones rotation_eular.x value and it needs to be a slider. When setting a property as a slider "slider=True" it uses the min and max values of the property to determine the range of the slider.

The problem is that a bone has no min or max values so the slider is useless.

Is there a way to either set a custom range for the slider or to set the bones rotation_eular properties min/max values?

I want the slider range to be from -90 to +90, I know I could create a custom property and then add a driver to the rotation_eular.x property but then I could not use the manipulator in 3Dview to animate it.

Any Ideas? some more info in this thread:
http://www.blenderartists.org/forum/showthread.php?333659-property-ui-question
You can use limit constraints, the catch is that they limit visual values used but the actual values can be anything. This is only of concern if you want to access the values in python.



So while your slider will continue to display large rotation values like 1346 degrees the bone will only be rotated between -90 and 90 degrees visually.

If you setup a driver to use the rotation value of the bone then it will just work, the driven value will be within the limit rotation values.



If you want to access the rotation value within python then you should manually apply any limits to the value before using it.