This question has likely been asked before. I tried to search, but I honestly don't know how to phrase the question specifically enough to find anything.
If I define a property inside of a class like this:
class Type(bpy.types.PropertyGroup): stuff : bpy.props.BoolProperty( name="Property Name", description="Property Info", default=False, )
Is it possible to access the name, description, default, and other fields, later at execution time? Say, for example, during a panel draw function?
After posting, I starting playing around and found that
class_instance.__annotations__.values() seems to include all of this data. But I'm not sure how to sort it out or access the data. I'm still pretty unskilled with Python concepts like tuples and dictionaries, but it looks like the wanted data may be in a dictionary? I'm thinking it may be possible to access it with something like
But even if something like this is possible, would it be the correct way to do it? Is there a better way?