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
Download Add-On v0.3 (09. Jul. 2011)
Python script 12KB for Blender 2.6.0
Video tutorial (youtube.com)
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
A simple JavaScript Browser Application to test or find a nice 'Peter de Jong' Attractor shape.
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
You can find the JavaScript here (requires jQuery).