[addon] Panel Switcher

A very simple script to switch (using Spacebar) directly between the 3D view and the 2 panels (2D x-y and 3D) without the inbetween view of the four panels.

https://github.com/ChrisRaven/Neuroglancer-Panel-Switcher/raw/refs/heads/main/Panel_switcher.user.js

What it does, is that whenever you press the Spacebar, it looks for the button titled “Switch to xy-3d layout.” (the one in the top right corner of the 2D view in 4 panels view) and clicks on it.

If, for some reason it doesn’t work for you, you might increase the delay between the pressing of the Spacebar and the auto-click. To do it, open the script in TamperMonkey and change the time from the current value (0) to the delay you want (in milliseconds). It’s in line 21: }, 0).

2 Likes

Another cool little script, KK!

I feel like this is one shortcut that’s missing given that we have the other shortcuts for switching between 2 panel and 4 panel view (shift+spacebar) and 1 panel and 4 panel view (spacebar). Also handy that it autoselects the preferred xy EM view. :smiley:

2 Likes