I'm grouping my properties in a class
like this:
class CTL_test(bpy.types.PropertyGroup):
variable = bpy.props.StringProperty(name='Variable', description='', default='', subtype='NONE', maxlen=0)
bpy.utils.register_class(CTL_test)
bpy.types.Scene.ctl_test = bpy.props.PointerProperty(type=CTL_test)
After that if I access bpy.context.scene.ctl_test.variable
,
This will give:
And, if I try to access, Scene.ctl_test.bl_rna.properties['variable']
AttributeError: 'CTL_test' object has no attribute 'variable'
Same, When I use this property in Interface, Like -
row_5.prop(bpy.context.scene.ctl_test, 'variable', text='Name', icon_value=0, emboss=True)
This will give Error:
property not found: CTL_test.variable
Where I'm wrong?
variable : bpy.props.StringProperty(name='Variable', description='', default='', subtype='NONE', maxlen=0)
I think, class definition changed in new Python version. $\endgroup$