Hello,
I’m writing (or trying to write) an operator script in blender 2.56 and this operator repeats in the background while the user continues about there business using blender, no problem there, that works fine. The problem arises when I attempt to store data from one run of the script to the next. As the script keeps running while you use blender, all the properties it has are reset every time it runs.
So I need permanent properties in the script and I can’t work out how to do that.
In the game engine (where I do most of my python programming) I would store them as GameLogic.property, but obviously i can’t do that here, so how do I do it?
you could either store your data in a global variable or, if you want to have it saved with your .blend files, add a new property to your scene/object depending on where and how often you need that data.
e.g.: bpy.types.Scene.myprop = bpy.props.StringProperty().
so bpy.props.StringProperty() would result in a persistent variable?