[Bf-python] obj.setLocation(x, y, z) and obj.LocX=x don't seem to work

Alberto Torres kungfoobar at gmail.com
Mon Oct 11 04:57:50 CEST 2010


Hi,

The .001, .002, etc prefix is added automatically whenever there is an
object with the same name. To refer to the new object, do this:

new_object = current_scene.objects.new(mesh_name, 'mynewobjectname')
new_object.setLocation(....)

Regards

-- 
Alberto Torres



On Mon, Oct 11, 2010 at 3:11 AM, andrew2006 at flight.us
<andrew2006 at flight.us> wrote:
> current_scene.objects.new(mesh_name, 'mynewobjectname')



More information about the Bf-python mailing list