How do i format it such that’s it’s recovered upon each launch?
Do I need a DocumentList containing DocumentNumberLists?
Also if this table is not present in the tools preferences I’d like to load in a list of default values… (already stored in a table)… Is this possible?
I’m not sure how to that but as long as you don’t want user defined scales you could just store them in a separate lua file called scales.lua and then put require “scales” at the start of you main.lua
The preferences file is xml so there is probably a different way to create nested data structures in that.
Just keep one thing in mind:create a custom preset folder somewhere outside your tool-folder to keep your custom presets safe from deletion:
If people update a tool, the complete tool folder gets erased before being installed with new contents. Contents that were custom put there will be erased as well.
The tool i pointed to does it, but i have another tool which didn’t at first.