A newbie question I know, but I’m stuck on it. What I’m trying to do is create a UI slider to control a bones x location (which drives some constraints on other bones). Here’s what I have at the moment:
row.prop(pose_bones["UI-Slider.SpineSpline"], "location", text = "Spine Spline" , slider = True)
pose_bones is just a list of the bones in the armature. It works, but I end up with tiny sliders for each of the x y and z co-ords of the bone and I only want to control the x location. I tried “location” but that doesnt work.
Preferably if I could set the min and max values of the slider too that would be great.
EDIT: I have another question as well, I thought I’d tack it on. I’m trying to add an enum property to a bone so I can switch between different child of constraints using the value of the enum property as a driver. However I cant work out how to add such a property to a bone.
What I’d like to do is have a drop down menu in my UI where the user can switch between head space, body space and world space for aligning the IK hand constraints.