I've written a script for unfolding meshes to nets. Anyway, I want to eat some artichokes now so if you're interested in things unfolding then have a look.
http://www.thesethings.clara.net/polyhedra/
I would be really grateful if someone who knows python (I don't) and Blender would advise me as to how to make my program work for animating sequences in Blender. So far I have created my unfolding animations frame-by-frame or by adding YaBle method invokations to my program. Specifically I am keen to know how to tell Blender to invoke a method of my program at each frame change, but have my program conserve object state in doing so (because my objects know about the folds in the meshes).
To call a script each frame, you have to create a ScriptLink.
Go the the Script Buttons (the icon next to the Display Buttons)
Press New
By default, the type of Event is FrameChange. That means the script is called each time the current frame changes.
In the empty box next to FrameChange, type the full name of the script (as it is displayed in the Text Window footer).
nice script btw
Martin
_________________
Life is what happens to you when you're busy making other plans.
- John Lennon