Retaining Classes when Reloading Scenes

You can store custom properties on the scene and object data blocks. For example this add-on adds a boolproperty to the Scene block.

bpy.types.Scene.inactive_wire_shading = bpy.props.BoolProperty(name="Inactive Wire Shading", default=False, update=update_inactive_shading)

(It also makes use of a @persistent decorator and some handlers to keep running across file loads and blender restarts.)

And here a property is being added onto an object:

If you need to store several bits of info you could use multiple props or maybe search around and see if you can store a dict on the Scene (or the armature itself?) to hold all your armature info.

1 Like