rna_uiItemR: property not found

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

Attachments


Hi Atom,

I’ve run into this, too. In my case, it usually turns out I forgot/failed to register the class.

HTH,
g

You can’t have panel properties, use global properties instead (bpy.types.Scene, bpy.types.WindowManager, …)

Thanks, that was it. I have never really programmed the N-KEY panel before. Just trying to fix a broken rig.