Most of the time it works fine, but sometimes it gives error messages like this (in Blender228a):
Using a clean Global Dictionary.
In Object_GetSelected()
Traceback (most recent call last):
File "extrudealongnormal.py", line 276, in bevent
File "extrudealongnormal.py", line 205, in main
AttributeError: 'NoneType' object has no attribute 'getSelectedFaces'
I don’t know where this NoneType comes from, because i select a mesh.
A file which gives this mistake is here
script is updated, version 0.6.2, (26-01-04):
changes:
script header added for blender232 compatibility
specify the number of segments to extrude per face
choose to make new mesh or use original mesh (with the possibility to UNDO the extrusion by entering editmode and pressing UKEY, if the mesh had already been edited before extrusion.
Hmm … in the file I uploaded, there are only 2 objects, a camera and a mesh. i select the mesh (it turns pink) then enter faceselectmode (F), select some faces and execute the script. And it gives the same error.
I know the faces are not linked, thats why in the beginning of the script I said to remove doubles after executing the script
I don’t have time right now, but i will try to change that.
I hate posting then as [img] ( I got a phpbb2 board at my own… I know the tags…) but visitors should choose if they want to see them. and belive it or not… there are still poor ones out there with a <128k connection :).
This could be like the “matrix extrude” function in Cinema 4D xl6,
if you can set the number of segments to extrude,
set length of (segments) extrusions,
set x y z offset of (segments) extrusions,
set rotation of(segments) extrusions,
plus random parameters (size ,offset ,rot).