Newbie question


(klopes) #1

Hi all! Although my many hours programming python in Blender, I’ve just wanted to create an meshed object from the void, but I’ve just noticed that I never did it! (Always I created first the mesh, and a magic object appeared!)

Now, I write:

o=Blender.Object.New('Mesh')

And it says me: TypeError: type expected!
What happens??? I use Creator 2.23
How can I create an object, and then give it position properties?
Sorry… :´(


(jms) #2

Hi klopes,

problem with the “type”?

Look at this page:
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_b223new.htm

jm


(klopes) #3

Perfect! That’s all, merci!


(jms) #4

But… to create a new mesh I think that you
should better use the NMesh.GetRaw/PutRaw
functions.

jm