Hello, everyone. I was doing some playing around with blender, and I found this site on blendernation about creating new primitives using python. I then created a new pipe (a hollow cylinder), to speed things up to some folks (including me).
Please, let me know what you guys think.
link: ls_pipe.txt
Since I can’t host any .py files, i have uploaded it as txt, just change the extension.
One of the ways to install, you can just copy it to .blender/scripts folder inside your blender folder.
Actually…
Last things first: I was not reinventing the wheel. I was just trying to do something useful in python so I dont get too rusty…
Next, about the end caps, it won’t do the trick. You would need to grab the end edges, extrude/scale inside, create some faces… It would be faster to do it with the circle… Anyway, here’s the shot of the created pipe along with the dialog:
Thanks! I will add it… It will be a little tricky, but… I don’t have an engineer degree for nothing, right?
I’ll post back as soon as I have it.
@edit:
Height divisions are now a reality. =) Check the script here. The version is 0.2.
The normals are also corrected. =)
The 0.1 version can be found here.
ok, I will. Let me just finish the section division and I’ll make the modification.
Btw… Does anyone has a good idea for the name “section division”? It is the number of divisions between the inner radius and outer radius…
Does anyone has a good idea for the name “section division”? It is the number of divisions between the inner radius and outer radius…
Radial divisions? (EDIT: Argh, LOTRJ beat me too it) Assuming I’m right in thinking that they’re the divisions between the inner and outer tubes, anyway.
Nice script so far. I think it would probably look better if you capitalized the variable names (not the ones within the script, I mean the ones in the GUI;)) - like Inner radius, Outer radius, Divisions, etc…
Just a minor crit really though:yes: Nice work on the script itself, I see complicated maths there:)
Very nice and versatile script - saves some time when working with circular shapes.
The only (minor) thing I would change is to make the outer diameter the same as it is for the default cylinder/circle/etc… (radius=1BU) and the inner diameter 0.5 or something like that. But that’s just me trying to keep it consistent