Each operator has an attached Python "storage" dictionary. Values stored in this dictionary are persistent, and saved with the operator. The storage dictionary contents may be manipulated directly with methods such as
OP.store(). See Storage Class. You can examine storage with an Examine DAT.
When an immutable element of storage changes, expressions that depend on it will automatically cook. For information about cooking of mutable elements (lists, dicts, sets), see deeply dependable collections.
Preserving in Filesedit
Storage is saved with
.tox files and is loaded on startup. If you want the values to be in an initial state on startup, regardless of what they were when the file was saved, you can use the
storeStartupValue() method to first create the storage entry, instead of