some scripts and a tutorial

Hi all,

its been a while since i’ve been on this forum, so i thought i’d post what i’ve got so far.

Scipts:
Add mesh Solids download docs
This script creates all mathematical regular solids and lets you interactively change between them. It starts with one of the Platonic solids (wiki) and then lets you cut of vertices and edges, generate snub versions and create the dual. It effectively creates platonic(wiki), archimedean(wiki) and catalan(wiki) solids.
recall operator supported

Add mesh Trapezohedron download (updated 19-5 reason: accidentally used old version)
This adds a trapezohedron(wiki). interactively lets you set the size and number of sides.
recall supported

add mesh Twisted Torus download
Adds a twisted torus. is different from the one shipped with blender in that is allows per vertex twisting instead of only entire twists. so its the one in blender plus some additional features.
recall supported

add supertoroid download docs
Adds a Supertoroidial solid to your scene
recall supported

all these scripts need the module(download) rawMeshUtils.py which should be placed somewhere in the add-on folder, as should the above scripts.

Tutorial:
in this tutorial i try to explain how to add the recall functionality to you own script.

i hope you people like this.
C&C are very welcome

will test theses this night
thanks for sharing

are the script enable in the add ons panel like the other already there

and also need to enable th last one too?

the last module is it necessary to enable it in the add ons panel
or will auto start before enabling the other scripts?

happy 2.5

thanks.
your add_twisted torus is already in Blender add-ons. :slight_smile:

@ rickyblender:
The scripts are normal add-ons and can be enabled in preference screen. I updated the last Trapezohedron one, since it wouldn’t show.

@ meta-androcto
my script has some additional features that the one in blender svn doesnt have. dont know if its better, but i thought idd share it any way

working nicely

i tried the solid one and is this only a pyramide ?

i like the one with sort of a sphere with square faces!

anyway to make a sphere with mostly square faces
except near top and bottom?
like a disco ball

Thanks & happy 2.5

thnakyou so much! standards primitives are so helpful :smiley:

downloading :smiley:

as an option would it be easy to add theses new primitives directly to the mesh menu
with may be a sub menu instead or be able to start it from a key sequence and get a menu?

like the circular 3D space menu for instance

then you don’t have to think about the add ons enable ect…

cause right now the way its’ going we gone get 200 scripts in this add ons panel
so won’t be easy to find things unless something else comes along to help!

keep up the good work
thansk and happy 2.5

Updated the first post:

  • added docs for the add solid mesh script
  • added more presets in the script
  • added all presets as menu items in the add mesh menu
  • renamed the twisted torus script to add_twisted_torus_2.py to keep this one appart from the one shipped in blender as the two really are different.

@ ricky blender
The add-on enabling panel is exactly meant for that, having 200 add-ons to enable. Thats why they added a search field at the top of the panel to search the one you want. Think what would happen if all those 200 just put them selves in your UI. Messes up your UI big time.

Also, just putting it out there because i dont know if it is a bug or not: when enabling add-ons in a blend file and later saving that blendfile, those add-ons dont remain enabled. but if you press the save as default button after you enable an add-on, it saves the entire blend file as default.
shouldnt changes made to the prefference screen saved as default only change the prefferences in the default blendfile and prefferences saved in the current blendfile be saved in the current blendfile.

please let me know what you think.

i did not notice the new fields at the top! LOL
this has been added lately and will help to get the right scripts

but still would like better way to deal with large qty of scripts and different type of scripts
like several folders for different type of scripts!
but will see with time if gets upgraded

Thanks for sharing & happy 2.5

dreampainter,
hey, this is some awesome work.
I’m really impressed by your well commented & constructed scripts.
your selection of objects is really very good in the solids script.
are you aware of this site > http://local.wasp.uwa.edu.au/~pbourke/geometry/
there’s some great stuff there to explore. :slight_smile:
I would really like to include your scripts our extensions svn.
drop in to irc freenode #blenderpython, or i can pm you here.
thanks.

@ meta-androcto
Thats a cool site, had to try something, so created an add supertoroid mesh operator ( see first post)
now about that irc thingy, i heard about it before, but have no idea what it is. so could you point me somewhere i can learn how to work that? thanks anyway

ow and no problem on the adding it to svn. just point out what you add, so i can feel smug about it :o

Edit: also forgot to ask, the owner of that site says stuff about copyright, so can i post scripts appyling the theory in his papers and only credit him or should i ask permission first(if so: oops)

dreampainter,
you can use any code from that site.
we already have permissions from the author. :slight_smile:

irc chat:
i use chatzilla (firefox add on)
or there are other popular programs.
once installed, join freenode, thats the client/host for the #blender channels
then you can join #blenderpython & say hi!