[Addon][WIP] Create a Guardrail

Oi mates.

Here’s what I’ve been working on these last days: A parametric Guardrail or Railing or Handrail creator.
Works with a 2D or 3D Bezier Curve with any number of splines inside.


One tiny step further towards my ultimate dream: Turning Blender into the number one 3D architectural tool, which would create HUGE interest and growth to the community (and a nice kick in Autodesk’s balls …).

addon_guardrail_0.4.zip (3.59 KB)

Cheers,
jimflim

Hi Jimflim,

Excuse me but your add-on v0.3 don’t run on Blender r2.69 official r60995:

“Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender\2.69\scripts\modules\addon_utils.py”,
line 298, in enable
mod = import(module_name)
ImportError: No module named ‘mesh_guardrail_0’”

because your py file is named "mesh_guardrail_0.3.py’, you don’t use several point the name of add-on, please.
Rename it to mesh_guardrail.py only.

Thks for your share! Very nice idea.
Bye bye
Spirou4D

Traceback (most recent call last):
File “C:\Blender\2.69\scripts\modules\addon_utils.py”, line 299, in enable
mod = import(module_name)
ImportError: No module named ‘mesh_guardrail_0’

Win7 Ultimate 64bit, Blender-2.69-56081d5-win64-vc12

Error of me! excuse this mail.

+@JuhaW Read my answer, please for the solution!

Thank you Spirou.
When the rail curve is 3-dimensional, pickets dont point straight up. Posts are ok.

Clearing Rotations for all pickets solved problem.

Attachments


+@JuhaW

You’re lucky, For me the add-on don’t appear in the Tools panel but I havn’t error, Weird?

Ha yes, I have understand -> with the search spacebar, you find “create guardrail” but why not directly not add to the tools panel???

About 3d mode for the bezier curve, you’re right, me too! Certainly you must warning the normals of the curve in 3d mode…

At soon.
Spirou4D

Ha yes, I have understand -> with the search spacebar, you find “create guardrail” but why not directly add to the tools panel???

About 3d mode for the bezier curve, you’re right, me too! Certainly you must warning the normals of the curve in 3d mode…

At soon.
Spirou4D

jimfilm… you are an hero… probably you’ve done but if you want an inspiration… check this…

it’s a great tool… :slight_smile:

fixed some bugs in verison 0.4:

  • there should be no more install problem (stupid filename on my side)
  • rails are now named and Z-UP by default
  • pickets now pointing up

Thx to TynkaTopi for the heads up !