Finding hidden objects


Here’s a little Python snippet that finds all 3d objects that have View Visibility turned off. After you run the snippet, those hidden objects are selected, so you can open the Explorer and press E to see them.

import win32com.client
viewvis = win32com.client.Dispatch( "XSI.Collection" )
hidden = win32com.client.Dispatch( "XSI.Collection" )

si = Application

viewvis.Items = '*.visibility.viewvis'
for o in viewvis:
	if o.Value == False and si.ClassName( o.Parent3DObject ) == "X3DObject" :
		hidden.Add( o.Parent3DObject )

si.SelectObj( hidden )
for o in hidden:
	print o

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s