just check the wiki page
and seems ok
but on console seems it does not exit anymore ?
select by name is gone ?
then what is it now ?
1-
i cannot upload this file from local folder ?
see questions #2 for the script
blender go into not responding !
but i don’t have any problems with other py files
any idea here why it’s refusing to upload ?
2 - problem with select name
here is the simple script
import bpy
# Object
bpy.ops.mesh.primitive_plane_add(view_align=False,enter_editmode=False,rotation=(0, 0, 0))
maxz=5
# bpy.ops.mesh.primitive_plane_add()
obj_act = bpy.context.active_object
obj_act.name="reflect1"
bpy.context.active_object.scale[0] =1.0
bpy.context.active_object.scale[1] =1.0
obj_act.location.z += maxz
# Parent plane to lamp
print ('obj_act.name =',obj_act.name)
bpy.ops.object.select_all(action='DESELECT')
<b>bpy.ops.object.select_name(name=obj_act.name,extend=True)</b>
i can print the name before this command and object exist !
problem with
bpy.ops.object.select_name(name=obj_act.name,extend=True)
i checked this command in other script and seems ok
so what’s wrong with this ?
thanks for any help