|
|||||||
![]() |
|
|
Thread Tools |
|
||||
|
original message:
---------------------------------------------------------------------------------- [size=2] Hi all, I've made a script that extrudes selected faces along their normal. something like this: ![]() the script can be found here Most of the time it works fine, but sometimes it gives error messages like this (in Blender228a): Code:
[size=2] I don't know where this NoneType comes from, because i select a mesh. A file which gives this mistake is here Anybody has a clue? :-?[/size] ----------------------------------------------------------------------------- --edit-- script 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. Greets, Wim |
||||
|
#1
|
||||
|
|
|
||||
|
That will happen when there is no active object.
Martin
............................................
Life is what happens to you when you're busy making other plans. - John Lennon |
||||
|
#2
|
|
||||
|
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.
|
||||
|
#3
|
|
|||
|
I like this script. Wings can extrude this way...now I can do it in Blender also. Thanks.
............................................
Only those who have the patience to do simple things perfectly ever acquire the ability to do difficult things easily |
|||
|
#4
|
|
||||
|
Got it. It happens when the name of the mesh datablock is different from the object datablock.
Instead of calling GetRaw, use ob.getData() to get the NMesh object. Martin
............................................
Life is what happens to you when you're busy making other plans. - John Lennon |
||||
|
#5
|
|
||||
|
Here's a recent post regarding Shift S, which can almost do this.
http://www.elysiun.com/forum/viewtopic.php?t=15847
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088 And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989 |
||||
|
#6
|
|
||||
|
Quote:
![]() updated version in first post |
||||
|
#7
|
|
||||
|
Quote:
alt-s makes a deplacement on normal direction. Notice also that there is yet an other script to do this since years: http://jmsoler.free.fr/didacticiel/b...ireshadows.htm
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français) Daily updated Bpy API | Ze best french tutorials site. |
||||
|
#8
|
|
||||
|
Quote:
Martin
............................................
Life is what happens to you when you're busy making other plans. - John Lennon |
||||
|
#9
|
|
|||
|
I love it!
thx very much.got b2.28, p2.23, linux and works just fine cu ***EDIT*** a small... cheap... 2 minutes work of mine ![]() http://files.blender3d.ch/temporary/extrude_normals.jpg
............................................
Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us! Calvin (from Calvin&Hobbes), Strip Nr. 2\'840 in the works: http://www.blender3d.ch/ |
|||
|
#10
|
|
||||
|
Quote:
http://users.pandora.be/tuinbels/scr...alongnormal.py and do not see how the faces are linked? You can also use subsurf statement to see one little problem.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français) Daily updated Bpy API | Ze best french tutorials site. |
||||
|
#11
|
|
||||
|
Quote:
I don't have time right now, but i will try to change that.
............................................
Simplicate and add lightness - Bill Stout, designer of the Ford Tri-Motor |
||||
|
#12
|
|
||||
|
Here is my test render:
![]() Thanks tuinbels, for the script
............................................
Think |
||||
|
#13
|
|
|||
|
............................................
Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us! Calvin (from Calvin&Hobbes), Strip Nr. 2\'840 in the works: http://www.blender3d.ch/ |
|||
|
#14
|
|
||||
|
Quote:
![]() and this?: ![]() :P
............................................
Think |
||||
|
#15
|
|
|||
|
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
.
............................................
Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us! Calvin (from Calvin&Hobbes), Strip Nr. 2\'840 in the works: http://www.blender3d.ch/ |
|||
|
#16
|
|
||||
|
Quote:
............................................
Think |
||||
|
#17
|
|
|||
|
lol... SHAME ON ME!
. everytime clicking on a dead link I though. "this ain't gonna happen to me "
............................................
Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us! Calvin (from Calvin&Hobbes), Strip Nr. 2\'840 in the works: http://www.blender3d.ch/ |
|||
|
#18
|
|
||||
|
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). |
||||
|
#19
|
|
||||
|
Quote:
(well, not completely, but trying to link all faces would be a bit more complicated)updated script in first post Quote:
![]() greets Wim
............................................
Simplicate and add lightness - Bill Stout, designer of the Ford Tri-Motor |
||||
|
#20
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|