2
$\begingroup$

All the objects in my scene (around 2'000) have the selection feature disabled all of a sudden (v.2.78):

enter image description here

I can drag the mouse down to reselect them, but the computer lags, and a lot of them don't get highlighted when I do this.

I looked at this and this, but I cannot find out how to make the scripts work.

Is there a quick and dirty way to make all the objects in the scene selectable again?

$\endgroup$

2 Answers 2

6
$\begingroup$

One option is to use shortcuts in the Outliner editor - V for visibility of the objects, S - for selectability and R for renderability. Note that mouse has to be over the Outliner editor while using the shortcuts.

  1. Open the Outliner. You need to point to Blender which objects' settings you want to edit. As they are unselectable, press A which will create blue overlay over the objects and will select them for the Outliner actions.

  2. Press the shortcut for desired operation, in the case of the question - S for selectability.

screenshot-Outliner-the-magician

Note that this is toggle, so it will invert current state of the adjacent property; if object-A was unselectable and object-B was selectable, objectA will become selectable and objectB the other way around.

$\endgroup$
2
  • $\begingroup$ The S shortcut toggles selection on or off even if the object is deselected when I try this. If I have all the even object numbers selected and the odd numbers not selected, it will switch. I am trying to select all or deselect all. $\endgroup$ Aug 31, 2017 at 20:23
  • $\begingroup$ @MicroMachine if the property is toggled then the object is selected (in Outliner). Toggling is indeed the downside of this method which is mentioned in the last paragraph of the answer; meanwhile the addon from the answer you linked works just perfectly thanks to Pink vertex. $\endgroup$
    – WKG
    Aug 31, 2017 at 20:53
0
$\begingroup$

While the addon in the first linked answer works, it has a main flaw, it either toggles or sets the selectability of the selected objects, so you can easily disable the selectability but you can't enable it unless you can select the object/s to start with.

The other answer works as expected, which is it toggles every object that is selected in the outliner. While selecting all is easy enough, that may include objects you don't want to toggle. This is really just the same result as the answer by WKG which has always been in blender.

For a simple brute force solution that just enables the three options shown in the outliner for every object -

import bpy

for o in bpy.data.objects:
    o.hide_select = False
    o.hide_render = False
    o.hide = False

You can easily adjust that to disable them again or just alter one of the options. You could change bpy.data.objects to bpy.context.selected_objects if you wanted to disable a selection of objects.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .