[Bf-python] Scripting error or bur in API ?
Patrice Ferlet
patrice.ferlet at wanadoo.fr
Mon Aug 25 02:02:40 CEST 2003
Hello
I am using Blender 2.28a, and trying to duplicate object in python script.
I get an object, named "objSrc" which is a mesh.
I create a new mesh and use shareFrom method:
mymesh=Blender.Object.New('Mesh',"test_mesh")
mymesh.shareFrom(objSrc)
Here is the python output:
In Object_GetSelected()
[Object "Cube"]
Traceback (most recent call last):
File "Text", line 12, in ?
TypeError: argument 1 is not of type 'Object'
So, i try to remove the "new" method and i have:
In Object_GetSelected()
[Object "Cube"]
Traceback (most recent call last):
File "Text", line 12, in ?
AttributeError: type object 'object' has no attribute 'shareFrom'
Where is the problem ?
More information about the Bf-python
mailing list