Spiral Generator

Hello. My first effort that is called ‘Spiral Generator Script’ is out. This name sounds exaggerated obviously, I know. :slight_smile:
I think my experience of Action Script helped me a lot (or a bit).

This strange script generates a mesh of ‘spiral shaped edge’ without a face.

The latest version requires installing Python for calling random module is here.
http://runble2.tripod.co.jp/pyscript/Spigen.txt

This previous version is No need installing Python.
http://runble2.tripod.co.jp/pyscript/Spigen097.txt

There are several parameters for spiral’s shape, numbers of vertices, etc. You can make a kind of messed up spiral with ‘khaos’ toggle button on.

Spirals with Wire Material, emit-value is max. This image is a kind of abstract stuff.
http://runble2.tripod.co.jp/pyscript/spigengui.png

Since this spiral is made of a sequence of vertices, so animating particle spiral is effective especially. And with build effect (remember?) is also interesting.

Example of ‘Particle Spiral’
http://runble2.tripod.co.jp/pyscript/parspi.mpg

And this is ‘with Wire+Build effect’
http://runble2.tripod.co.jp/pyscript/wirespi.mpg

Tip: Of course you can make the generated spiral faced with alt+e then s or alt+s.
Anyway, once you play with this script, you will understand what I’m trying to say, I think.

I guess this script could be better. But I don’t know well about Recursion or something…

Very interesting,

thanx for sharing :slight_smile:

Stefano

Thanks for a comment.
Correct : Press ‘e’ to extrude, not ‘alt+e’.
And here is blend file(169kb) has the script and many spirals.
http://runble2.tripod.co.jp/pyscript/spigen.zip
I hope you enjoy. :smiley:

I have a question.I’m working on ‘tracing spiral script’ with referring to Forked Tongue docs.
Is it possible to make script with happydoc’s API that work in newer versions of Blender?

This old API version works in 210.
http://runble2.tripod.co.jp/pyscript/spiraltrace.txt

This happydoc’s API version doesn’t work at all in newer versions of Blender.
http://runble2.tripod.co.jp/pyscript/spiraltracenew.txt

Is ScriptLink depreciated? :-? Please help me out.

Hmmm, you wouldn’t happen to be attemping to mimic the fuction of 3DS are you ? This is blenders weakest spot, the extrudion on polyline, with beval, tweek, scalling, pivot and all that other stuff.

No, no. My question is " Is ScriptLink by FrameChanged (in ScriptButtons) useless in new versions of Blender (225,226,227)?”
'Spiraltrace’ script (see above) needs to be linked to your object by ‘FrameChanged’. You can preview the animation that the object, which is linked to the script, is tracing spiral as animation path. The script initializes the parameters when current frame is 1.
I tested this script in 210, 220. It works well as it’s made with old API.
But the second script that coded with new API doesn’t work somehow in 225,226,227. :expressionless:
Or…Had I better wait for next version of Blender Python API?

I tried framechange in new versions, seemed to worked correctly.

Martin

I think you need to change these parameters to “Blender” class method.
ex.: z -> Blender.z

hope this help.

Thanks, yamyam-san! It’s good to see in here!
I’ll try to do with that :stuck_out_tongue:

I was just wondering if there was a way to keep the “objects” equi-distant or maintain a minimum distance between objects?

What I mean is, at the bottom of the spiral, all of the Halos are compressed together and you get a solid blur streak. Is there some way to set a minimum distance between consecutive vertices? I have tried the ‘Remove Doubles’ feature, but it didn’t differentiate between consecutive vertices and the vertices in the next ‘cycle/ coil/ loop’, so it sort of made a mess. (Though, I found it didn’t update the display until I toggled in and out of Edit mode, so it may have worked if I was a little more carefull).

Also, I notice when I generate a spiral, only the first 3 vertices are joined by edges, and they seem to be arranged in a ‘V’ shape. Are all of the vertices suppose to be joined by edges?

Very nice work.

Sorry, fixed version is here.
http://runble2.tripod.co.jp/pyscript/Spigen.txt
With this, you can get “Edge-spiral”.

at the bottom of the spiral, all of the Halos are compressed together and you get a solid blur streak.

How about trying to set the “Halo-Size” value very low?

Though, I found it didn’t update the display until I toggled in and out of Edit mode, so it may have worked if I was a little more carefull.

You can see the generated spiral in Wire DrawType mode only.

http://runble2.tripod.co.jp/pyscript/Spigen1.2.txt
I added “Remake” feature. With this button on, you are able to remake the spiral’s “ME:spiral” datablock.
However,renaming this datablock may be causing Blender crash.
Please use this version at your own risk.

Thanks Soni, the spingen.py file works great.

The reason the object wasn’t as noticeable was the lack of the edge, so it did not show up as well in object mode in the older version. It works fine now. The script is very stable and has not caused any problems yet, so good work.

I did not really want to reduce the HaloSize, since at the distance that I have the camera at now, the halo spots are just the size I wanted. Well, I guess I will maybe make 2 spirals, one with less vertices at the beginning and then “join” the 2 together some how.

Now, I think I will try your latest creation out.

Keep up the good work. Domo Arigatu

The content of a PM from the author:

From: soni bardot
To: Fligh %
Posted: Sat Oct 11, 2003 2:29 am
Subject: Re: Spirals
Sorry for my slow reply.
Quote:
would it be possible to have your ‘spiral generator’ draw curves instead of mesh? since you can change curves to mesh and use profiles before changing to mesh.

I thought it possible, I did tried to remake, but I couldn’t.
I mean curveAPI is hard to handle to me. maybe no more big update by me. so this script is free to modify.

If it’s possible would someone else be interested in modifying this script to work with curves, preferably surface.

%<

that urll brings up an Japanese HTML page. Not text or py file.

Well it was done in 2003, maybe there has not been much done to it since then or perhaps the page is dead after all this time :smiley:

Ken

http://rbblog.bblog.jp/category/blender/