Hi, I want to make a UI Panel that controls various bones on my rig. It woud be neat to be able to expose some custom properties there instead of having to navigate to the bones every time.
I tried around with the prop() function in layout without success. I can access the property, for example this works and displays the right number:
Thanks for your answer, sadly I still get the same error.
layout.prop(context.object.pose.bones["Prop_Hand_L"],"location")
layout.prop(context.object.pose.bones["Prop_Hand_L"],"Prop_ID")
val = context.object.pose.bones["Prop_Hand_L"]["Prop_ID"]
layout.label(text ="The property is accessible. It's value is: "+ str(val))
this produces the result below. The second time I call layout.prop does nothing.