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.types.Scene.ctl_test = bpy.props.PointerProperty(type=CTL_test)

After that if I access bpy.context.scene.ctl_test.variable,
This will give:
enter image description here

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?

  • 2
    $\begingroup$ Problem is solved using, variable : bpy.props.StringProperty(name='Variable', description='', default='', subtype='NONE', maxlen=0) I think, class definition changed in new Python version. $\endgroup$ Aug 5 at 12:03
  • $\begingroup$ can you please post it as an answer so we can close this thread :) $\endgroup$ Aug 7 at 5:26
  • 1
    $\begingroup$ Does this answer your question? Can´t see the inputs in dialog box- blender 2.93 $\endgroup$
    – Gorgious
    Aug 7 at 8:34
  • $\begingroup$ Hi, Mohit ... glad you found a fix.. I'm going to close this as fixed without needing an answer. If you'd like to answer it yourself. please edit to re-open. $\endgroup$
    – Robin Betts
    Aug 7 at 11:01
  • $\begingroup$ I’m voting to close this question because it's been self-answered in a comment. $\endgroup$
    – Robin Betts
    Aug 7 at 11:01

1 Answer 1


The Problem is Solved,

class ClassName(bpy.types.PropertyGroup):
    # Normal Data in Python Class
    label = 'My CTL Group'

    # Blender DataProperty in Python Class
    new_property: bpy.props.StringProperty(name='New Property')

enter image description here

This Output Shows that bpy.types.Scene.new_property has registered successfully,
But class has not registered.

When, Both registers successfully, the output will look like this (default value)

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .