July 06, 2011

Hide_select, marking multiple objects to be unselectable


# with numerous objects selected, if you want to prevent their selection 'en masse'
for i in bpy.context.selected_objects:
i.hide_select = True

you might be interested in .hide and .hide_render