Anyone know of a quick way to delete the hidden objects from a scene? I’ve got a lot of them and if I unhide them they’ll be everywhere and I know I’ll miss some. Couldn’t find anything on scriptspot to my knowledge.
I would just select everything that is showing, then unhide all, invert selection and delete.
Or create a selection set of the stuff you want to keep, unhide all, select te set , hide and delete the rest.
Perfect! I knew I was missing something.
Thanks.
As a script it is not really that difficult.
for i in objects do
(if i.ishidden == true do delete i)
It deletes everything that is hidden, no confirm or similar, so be careful when using it. Advantage is that you don’t have to unhide anything.
Best regards,
Michael
Thanks. Saved for future reference.
thanks a lot Sushidelic, veryvery usefull! (with cad import ie)