I’m not satisfied with how “use_property_split” is splitting the labels and properties in a dialog box I made. I’ve got really long labels, and I have to stretch the dialog box WIDE to get to see the complete labels, and the properties themselves take up like 60% of the width so they get really wide, but only the labels need to be really wide, not the properties themselves. So I decided to try the column.split() function so I could control how much space the label and property take up.
Not sure if this is a good idea or not (or if there is a better way), but I quickly realized I could not seem to access the “name” of the various bpy.props type properties, which I wanted for the labels (I can hard code the text, just curious if I can get at the “name” or not).
Alternatively, if there is a way to control the split factor of “use_property_split” that would be even better.
Say you have a custom property prop on the active object. You can access the value with bpy.context.active_object.prop.
However you have to access a special construct under bl_rna to get the underlying attributes of the property.
bpy.context.active_object.bl_rna.properties["prop"] will give you all the possible attributes, here for a property group :
Thank you so much. I was able to tweak your solution to work for me. I was listing out properites of my AddonPreferences class in a multi-file addon. What ended up working for me was…