I'm trying to register input variables by extending the scene type using the following line of code:
import bpy
from bpy.props import IntProperty
bpy.types.Scene.myInt = IntProperty(name = "Int Name", default_value = 2)
Which works, but this gets removed every time I save and reload the blender file. How can I make it persistent?
https://blender.stackexchange.com/questions/235572/what-handler-should-i-use-to-run-code-when-a-new-file-is-loaded/237154#237154
– user116656 Feb 26 '23 at 06:52