Here we see two ways to get a UI property stored in the Scene
>>> print(scn.repGroups)
<bpy_struct, RepGroup("")>
>>> print(scn['repGroups'])
<bpy id prop: owner="SCScene", name="repGroups", address=0x0000003F0CE7D278>
Typically I'm use to accessing a property like in JavaScript by passing an argument that is the string that holds the value that is the property like
def findIt(propName):
scn = bpy.context.scene
return scn[propName]
I would like to access the scene/scn property by name but get returned the item like you do in a normal reference (bpy_struct NOT bpy id prop). Please advise?