Hidden objects warning upon file open?

Since a file can be saved with hidden objects, I’d like to see an option to warn the user that this is the case. If you haven’t worked on the file / project for a while, it is easily missed that some things are hidden, or at least I find it so.

It needn’t be visible as an option - if there are no hidden objects the command doesn’t display any warning.

This used to be in Visual CADD - upon file open, the command line would simply say "Warning: This file has hidden objects " if that was the case, and it would say nothing if everything was available.

(actually I think it said “has hidden layers” since I don’t think you could hide objects individually, but its been a while…)

What’s not to like?


Hi Tony - for now, a crude macro may help:

! _Open _Pause _NoEcho _-RunPythonScript (
import rhinoscriptsyntax as rs
ids = rs.HiddenObjects()
if not ids:
    print "No hidden obects found in this file"
    print "This file has some hidden objects"

I can add the wish.


I filed this request https://mcneel.myjetbrains.com/youtrack/issue/RH-57495 to be able to run commands when opening a file (not just when starting a Rhino instance). In theory, if implemented, it could allow the user to have the above script run every time a file is opened…


Thanks Pascal

I’ve put this on the “New”
button on the standard tool bar, on the un-used right mouse button, where it
works very well.

However, when the macro flags hidden objects, and a “unhide” doesn’t
bring them to light, I then run “show”, and I get:

“All hidden objects are on layers that are off or locked. Use the
“Layer” command to turn these layers on.”

I appreciate this verbose feedback, but in a big file to wade through
all this is not really efficient use of time…

What’s needed is a command to simply show all hidden objects in a file,
regardless of if they are locked or on layers that are turned off, perhaps like

Part A: Show all hidden objects (regardless of whether they are on
locked layers), zoom to extents, invert the display of hidden objects vs
unhidden so only the hidden ones are displayed.

Part B: Allow options of what to do next, for example just list them and
their layers, delete all hidden, delete all locked (ie override the lock
command within this command) and so on.

Even just Part A would be helpful…

I’m not aware of any way to explore the hidden objects except to wade
through layers and manually check.

As an aside, while exploring any options, I came across the
“ShowOffLayers” command – running this gives the following error: (Version 6

(6.23.20055.13111, 24/02/2020)

Source: Microsoft VBScript runtime error

Error: Type mismatch:

Line: 1

Char: 0


Finally, as Mitch suggested, ideally you’d be able to allow this kind of
thing to run automatically whenever a file was opened – perhaps via a entry
similar to the “run every time rhino starts” where the user can place commands
as is appropriate to their workflow…