run a function ignored by Undo Queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So i'm building a custom HUD and querying all sorts of camera data that gets updated every frame.
Each hud element has it's own hud command, such as getTilt() which queries the active camera's rotateX value.
Obviously this needs to execute at every frame. When you change frames it enters all of the hud commands into the undo queue, so the user has to undo twenty times just to undo an actual user action, or even just go back to the previous frame.
If I could, I would combine all the hud element commands into one single function
stateWithoutFlush=False
run all hud element commands
stateWithoutFlush=True
But the headsUpDisplay() command seems to be designed such that each element has its own command, and will auto run at every time change.
I've tried nesting the stateWithoutFlush commands inside the hud element commands, but the queue doesn't turn back on, and because it's nested, the encapsulating function still enters the queue.
So how do i execute a function that the undo queue will ignore?
Thanks for any assistance.