I’m thinking of writing a custom operator and I’d like it to be able to save custom data that is specific to a particular blend file. For example, I’d like the operator to let the user define some point in space and then draw some custom graphics at those points. When the user saves the file, I’d like this data to be included so my operator can find it again if the file is reloaded.
This would be different than just specifying properties since these are not specific to one particular blend file.
That isn’t going to work. Custom properties are stored on the class and managed by Blender. I need something that I can add to a data block so that it is specific to only one .blend file.
Yeah it depends on which type of bpy.types.* you attach the property.
Another alternative is to just save to your own file with fopen, so this is only useful if you want to use a custom binary file or something else (json/sqlite) etc.