HOME | DD

BlenderCommunity — Janet's Blob Sprinkler

Published: 2006-06-14 22:44:35 +0000 UTC; Views: 899; Favourites: 1; Downloads: 121
Redirect to original
Description My first Python program It's not the revolution in blender modeling, but it is a nice example that shows how algorithmic modeling tasks are solved with Python scripting.

To run the script, simply download the blendfile to your computer, load it into Blender, hover the mouse over the script-window to activate it, and hit Alt-P.

The Blob Sprinkler is based on Parrotdolphins fine PoV-Ray-script.[link]

Don't believe I would be able to code in Python. I just shook and squeezed another script from the blender manual [link] until it rather looked alike Janet's code

If you want to get deeper into the miracles of automating Blender, you may have a look at the link repository [link] which you can easily extend yourself with more links, if you've found some or any other info you want to share. The wiki has an inbuilt code hilighter that even understands the Blender-API. See the source of the above script at [link] for an example of that feature.

Cheers imagnum

Edit: Fixed some URLs
Related content
Comments: 16

newdeal666 [2006-06-16 20:07:23 +0000 UTC]

that is amazing

👍: 0 ⏩: 1

imagnum In reply to newdeal666 [2006-06-20 16:28:26 +0000 UTC]

Thank you Legwork was done before, I just ported it to the bleder format to show some essentials (and actually to make it clear to myself).

The original is even more amazing [link] I like that eerie athmosphere

Welcome to dA btw

👍: 0 ⏩: 1

newdeal666 In reply to imagnum [2006-06-20 21:55:37 +0000 UTC]

how did you use the sripting for your image i know how to make games with it and you welcome

👍: 0 ⏩: 1

imagnum In reply to newdeal666 [2006-06-21 19:13:47 +0000 UTC]

Not sure if I understand your question. The script simply inserts the metaball-sprinkled sphere into the given scene. Has nothing to do with real time processing like game programming. It's just a little helper-app for modelling tasks.

👍: 0 ⏩: 1

newdeal666 In reply to imagnum [2006-06-21 20:19:40 +0000 UTC]

so what you mean is that theres a script that already on blender for it

👍: 0 ⏩: 0

Mandoragon [2006-06-16 19:52:23 +0000 UTC]

where did you learn python?,
Nice job!
and have you posted a thread on blenderartist.org and where (if yes) is the thread?

👍: 0 ⏩: 1

imagnum In reply to Mandoragon [2006-06-20 16:21:30 +0000 UTC]

As mentioned before I learned it by doing this piece. I've never worked with Python before. It isn't very hard to learn. I even would suggest it for learning programming at all.

And I haven't posted anything on blenderartist.org since I've got no elysion account. You may spread the stuff if you like.

👍: 0 ⏩: 0

parrotdolphin [2006-06-15 01:27:11 +0000 UTC]

Wow, big smile on my face. Works great! Now you are a Python expert. You cannot deny it.
As for the "nastiness" of having 3 random number generators, I'm not so sure you need them. Someone on the POV-Ray news groups pointed out to me that one would do, at least for POV-Ray anyway.
It has a nice interface, I like the "BAKE" button.

👍: 0 ⏩: 1

imagnum In reply to parrotdolphin [2006-06-15 08:33:56 +0000 UTC]

Finally it turned to be a purely personal matter between me and the Python interpreter

You are right, it wouldn't be less casual with only one sequence of random numbers. When I fixed the interface, I was in need for something to control with these gadgets. Maybe it would be more senseful to connect 'em to other parameters like size and threshold of the blobs. Yet the 'amount' slider is the only control that works in a somehow predictable way

However, I can deny that I would be a Python expert... it's far from that

👍: 0 ⏩: 1

parrotdolphin In reply to imagnum [2006-06-16 00:41:35 +0000 UTC]

I know, it was a learning experience for you, a way to learn Python.

👍: 0 ⏩: 1

imagnum In reply to parrotdolphin [2006-06-20 16:34:02 +0000 UTC]

Yep, that's the way it is ...and it was fun to defeat the Python interpreter

👍: 0 ⏩: 0

Tex777 [2006-06-14 23:31:49 +0000 UTC]

Ummm... what does it do?

👍: 0 ⏩: 1

imagnum In reply to Tex777 [2006-06-15 08:11:10 +0000 UTC]

It dribbles metaballs onto a spherical surface. And it showed me how the scripting capabilit< of Blender is working

In fact there is a lot of room for improvements in that script. Maybe it infects somebody else to play with the script

👍: 0 ⏩: 1

Tex777 In reply to imagnum [2006-06-15 16:47:13 +0000 UTC]

Aha. I'm gonna have to try this...

👍: 0 ⏩: 1

Tex777 In reply to Tex777 [2006-06-15 17:18:46 +0000 UTC]

I checked it out, it's very cool.

👍: 0 ⏩: 0

duku6 [2006-06-14 22:57:20 +0000 UTC]

vairy cool ^.^

👍: 0 ⏩: 0