Generative Scenes

i’d like to know if the following is possible using blender without ever opening a window:

run blender through command line
execute a python script and generate a scene using the api methods
render the scene to disk

i googled around but i am still not sure if this is worth giving it a try. does anyone know this by firsthand experience?

thanks for feedback!

I don’t see why not using 2.49. There is an onLoad event. Just place your code in a text box of the scene. Enable script links and select your script to run in the onLoad or onRender event.

Launch Blender from command line.

blender -b yourfile.blend -P yourscript.py

See http://wiki.blender.org/index.php/Doc:Reference/Command_Line for more info