Isolate Objects Python script

It would be great if we can have the python script for isolating objects! Wonder if anyone could help?

Hi Li - you can use a macro to do this, actually - Hide/Show have a magic hidden feature called ‘Hide buckets’ that allows you to keep track of hidden objects if you use the dash, scriptable version of the commands

-Hide -Show

So-

Isolate=
! _Select _Pause _Invert _-Hide "IsolateSet"

Unisolate =
! _-Show "IsolateSet"

You can make any number of named ‘hide buckets’
-Pascal

Thank you very much!!!