So I created a little script that isolates some elements in a given view. Works great the first time I run it. Although if I switch views it doesn’t work, and from what I can tell it’s because the Document.ActiveView is getting the current view. It still shows the view from the first I ran the script. If I close and re-open dynamo then it works.