4
$\begingroup$

If you have multiple models selected, you can hide them all at once with H or by Alt+LMB on the Eye icon in the Outliner. However, there does not seem to be any way to unhide only the selected objects without unhiding everything. Alt-clicking on the Eye again only unhides the specific object you're clicking on.

Any way around this?

$\endgroup$

2 Answers 2

3
$\begingroup$

This is relatively simple to do with a bit of Python code:

import bpy

for ob in bpy.data.objects:
    if not ob.select:
        continue
    ob.hide = False

You can paste this into a text editor in Blender and run it, or extend it into an add-on with an operator and a button to add to your user interface.

$\endgroup$
1
  • $\begingroup$ So if I just want to unhide all, Alt+H, what's the equivalent code for that? $\endgroup$
    – June Wang
    Commented Nov 29, 2020 at 17:06
2
$\begingroup$

Under Edit > Preferences > Keymap, untick all the Select checkboxes.

This way when you unhide any geometry, it won't be selected anymore.

enter image description here

$\endgroup$

You must log in to answer this question.

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