|
As of version 1.67 Blender
can be programmed with the Python scripting language. Objects, Materials, |
|
Deselct All vertices and
select only the center tube by placing the mouse pointer over one of the
vertices |
|
Scale the new coiled spring as close as possible into a
2x2x2 grid cube and make a new Center (EditButtons |
|
Center the 3D cursor at 0,0,0
- go into top view (NUMPAD7) and add a Plane to the scene. I named my plane |
|
Now we are ready for some
scripting. I made a new screen in my .B.blend default file just for Python |
|
While scripting it is a good
idea to show all the axis of the objects in our script. This is done in the |
|
When planning a script ask
yourself 'What, Where, When, and How': |
|
Lets start with lines of code
and what they do. (I am using " <-- -->" to seperate the code
from the instruction) |
|
The next line determins if the spring needs to be
compressed:
|
|
The next line of code does the compressing:
|
|
We could just as well use
Python scripting to animate the Spring's Up & Down bouncing movement, but
for |
|
I hope I haven't put a strain
on your brain because mine sure as hell hurts now! |