On 22/07/2015 at 10:49, xxxxxxxx wrote:
I have this codebit in my python generator:
if not ('myvariable' in locals() or 'myvariable' in globals()) :
print "myvariable created"
myvariable = "hwllo world"
I should not be seeing "myvariable created" more than once, but I see it every time I move the mouse around (optimize cache and reset on frame 0 unchecked as this is a generator that needs to update every frame)
So I believe it's not possible to store any variables? it runs the whole generator from scratch every signle time?
Then how should I store my variables?
Thanks.