Hi,
I have a variable in my class:
prop_custom_float : bpy.props.PointerProperty(name=“My Custom Variable”, type=CustomPropGroup)
Is there any way how I can get the name “My Custom Variable” in python? I know how to use dir() and get the prop_custom_float class member variable, but i need the name that i displayed in the Blender UI.
from bpy.props import (FloatProperty,)
flt = FloatProperty(name=‘fltPropName’, default=0.0)
flt (, {‘name’: ‘fltPropName’, ‘default’: 0.0})
flt[1] {‘name’: ‘fltPropName’, ‘default’: 0.0}
s = str(flt[1]).split("’")[3] print(s) ‘fltPropName’
wow, thats fantastic!
I ll try that later. Strange I could not find out how it works…
thanks very much