[Bf-committers] Fwd: change active object

Yuniel Castro González ycastrog at estudiantes.uci.cu
Sun May 15 02:04:30 CEST 2011


Hi again.
I have a new StringProperty that contain a brush_name and a segment of codes:

for d in bpy.context.scene.objects:
    if d.name == brush_name:
        bpy.context.SceneObjects.active = d

to change an active object in scene, but when I use new active object I am not obtain good results.
Suggest me.


----- Mensaje reenviado -----
De: "Yuniel Castro González" <ycastrog at estudiantes.uci.cu>
Para: "listaBlender" <Bf-committers at blender.org>
Enviados: Domingo, 15 de Mayo 2011 1:58:27 GMT +01:00 Amsterdam / Berlín / Berna / Roma / Estocolmo / Viena
Asunto: change active object

hello to all.
I am programming a script for Blender 2.5 and I need to change the active object in the scene.
How can I do?
Thanks in advance.

-- 








Yuniel 

-- 








Yuniel 


More information about the Bf-committers mailing list