[Bf-python] Bug in Blender.Object.New ?

Manuel Bastioni manuelbastioni at tin.it
Wed Sep 10 00:15:56 CEST 2003


I'm working to build the MakeHuman
mesh from external lib. The name of obj
created is very important for the script.

I must have a new object named "Base",
with a mesh named "Base" (ie ME:Base OB:Base).

I use this code, but it return a new object called
"Mesh":

------------------------------------------------------
...
 newBaseObj = Blender.Object.New("Mesh","Base")
 newBaseMesh = GetRaw()
 newBaseObj.link(newBaseMesh)
 s = Blender.Scene.GetCurrent()
 s.link(newBaseObj)
...
...[construction of a mesh from a file]...
...
 PutRaw(newBaseMesh,"Base")
-------------------------------------------------------

this return ME:Base OB:Mesh 


Thx,

    Manuel



More information about the Bf-python mailing list