2 problems with same file ?

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

I believe select_name was removed from the API at 2.6.2. Try an old build and I bet it will still work.

strange cause the wiki pages and the PDF API did not show this API change!

but when i ran it into console it did not exist and gave an error !

why is the Wiki not updated immediately for API changes !

ok i’l test with new command pattern !

file upload problen?

from text editor i cannot upload this script file

i mean it goes into not responding at top header !

i can load any other script i have but nto that one!

is there now some new requirements for script files uploading may be?

thanks