This would be perfect but I can't find a place to use it that's not part of an operator. There's no single operator responsible for handling these functions. I'm not able to find any way to attach a SKIP_SAVE property to, for example, wmWindowManager or wmWindow. I'd rather avoid resorting to a static variable in a function. Maybe there's some way to do it with rna that I'm not seeing?
On Thu, Jun 21, 2012 at 4:01 AM, CoDEmanX <[email protected]> wrote: > How about using RNA with SKIP_SAVE flag? > > bpy.types.World.temp_var = StringProperty(description="Label of the > control", options={'SKIP_SAVE'}) > > Or in C: > > prop = RNA_def_int(ot->srna, "prop_name", 1, 1, INT_MAX, "Prop > Name", > "", 1, 10); > > RNA_def_property_flag(prop, PROP_SKIP_SAVE); > > > Am 21.06.2012 09:52, schrieb Jorge Rodriguez: > > I need a place where I can put a UI-related temporary variable for > storing > > things such as what was the last button pressed and when did the last > > tooltip close. It must be in some scope that's visible to and accessible > by > > all controls. I can't put it in RNA because those things are stored to > the > > hard drive, and these things are runtime-related and shouldn't be > stored. I > > don't want to make a global variable because that's obviously sloppy. > There > > doesn't seem to be any UI-related area to place stuff that should be > > visible to all controls but not stored on the hard drive. If I can solve > > this problem then I should be able to immediately remove two things from > my > > list. > > > > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > -- Jorge "Vino" Rodriguez [email protected] [ Tweet <http://twitter.com/vinobs> | Like <http://www.facebook.com/bsvino>| Plus <http://www.google.com/profiles/bs.vino> ] 919.757.3066 _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
