View Full Version : Simple script for selecting objects by visibility?

03 March 2011, 01:54 PM
Hi there,

I was wondering if anyone knew of a script that would allow me to select all objects in a scene with a visibility of 0.0?

I am currently working on a file that has 1000's of duplicate meshes that have a visibility of 0.0, I would like to find, select and delete them all..

Many Thanks, any assistance is really appreciated.


03 March 2011, 02:17 PM
Provided they have visibility 0.0 and that we're talking about the property of that name that can also be set via Object Properties dialog, this should work:

delete (for i in objects where NOT i.visibility collect i)

If you only want to select them, replace delete with select.

03 March 2011, 02:28 PM
Thank you so much! :beer:

CGTalk Moderation
03 March 2011, 02:28 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.