I’m trying to figure out how to do the equivalent in a Python script of pressing Alt-A to show an animation preview. I’m pretty sure this is possible; the front page of the manual says:
Blender has a demo mode, where once started it can work without user intervention, "showing itself off". Demos can render stills and animations, play rendered <b>or real-time animations</b>, calculate radiosity simulations and do many other nifty things.
That’s almost precisely what I’d like to do. I’d like to set up an animation (camera over here, gingerbread man over here, then have him wave and smile) and run it in the 3D viewport. That’s easy to do from within Blender, but can it be done from within a Python script? If so, I could then set up the script to run automatically when the scene is loaded.