Previous Thread  Next Thread

chat icon Net Generator Script

celeriac

Posted: Tue May 27, 2003 10:16 pm
Joined: 21 Feb 2003
Posts: 72
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).
Reply with quote


theeth

Posted: Wed May 28, 2003 4:24 pm
Joined: 16 Oct 2002
Posts: 1177
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
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group