Hi All,
I have a class with a bpy.props float value. In the draw I want to display that value but Blender is giving me grief. I am not sure why this does not work. I have used this same technique in many scripts and it has worked before.
The Class:
class RigProperties(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_label = "Rig Properties"
def updatePalm (self, context):
print(self.palm_flex)
palm_flex = bpy.props.FloatProperty(name="Palm Flex", description="Palm flex value.", default=0.0, min=-10.0, max=10.0, update=updatePalm)
@classmethod
def poll(self, context):
.
.
.
Inside the draw:
print(dir(self))
col.prop(self, 'palm_flex', text = "Palm")
I get an error that the property is not found but if I look in the console I can clearly see that the property is part of the self.
Does anyone know what is going on with this error and how I can fix it?
Thanks