[Bf-committers] active - duplicate

Yuniel Castro González ycastrog at estudiantes.uci.cu
Sun May 15 05:58:46 CEST 2011


Hello to all.
I want to make a script that having 2 objects in the scene, a cube and a plane for example, I can make a duplicate to the object that is not active, assuming that the active object is the plane

import bpy
bpy.context.scene.objects.active = bpy.context.scene.objects['Cube']
bpy.context.object.duplicate()

with this, change the active object (plane X cube), but the duplicate is made to the plane
How can I make the duplicate to cube?
Thanks in advance.


-- 








Yuniel 


More information about the Bf-committers mailing list