Example how to use bpy.app.handlers.render_pre.append() to animate meshes
anim_attractor.blend (07. Feb. 2012)
Open the demo file and
1) Click 'Run Script'
2) Select the Output
3) Click 'Animation'
Note: the script window in Blender 2.62 will freeze after rendering (I do not know why, maybe a bug), so you have to restart if you want to do a new animation/rendering.
This code is a short render handlers example how to rotate a simple cube (frame by frame) without using keys.
A simple Python Add-on to create diffrent shapes of beautiful 'Peter de Jong', 'Clifford' or 'Lorenz' attractors
Note: Instead of using 'Halos' to visualize every single point of the attractor cloud in Blender, you can also use a 'Wire' material with zero-length edges to get a nicer and sharper result. How to do this: 1. Select the attractor, 2. Switch to 'Edit Mode' (Tab-Key), 3. Extrude the vertices by pressing e-key and don't move the mouse, just hit Enter, 4. Go to the material panel and select 'Wire' (and change colour, emit etc. if you want), 5. Optional: uncheck Anti-Aliasing in the render panel
Webkit browser (Safari, Chrome) or Opera are much more faster than Firefox.
Try some other Attractors:
1) a: 2 , b: -2 , c: 2 , d: -2
2) a: -2 , b: -2 , c: -4 , d: -2