Quick mesh transparency toggle tool

I (with AI help) made a small userscript for myself while working on cilia tasks, and figured some of you might find it useful too.

https://github.com/toknow-gh/eyewire2-transparency-toggle/raw/refs/heads/master/eyewire2-transparency-toggle.user.js

Why

When in Cilia Quest, I often end up tweaking the 3D mesh transparency several times per cell. So I put a button in the top toolbar instead.

How it works

It’s a three-state button. Each click moves to the next mode, and the letter on the button tells you which one you’re in:

Button Mode 3D look Silhouette (3d)
Q Cilia search 3D opaque 0
C Cilia centerline 3D semi-transparent 0.3
8 Centriole check 3D semi-transparent (more see-through) 3

The letters aren’t random:

  • Q — looks like a cell body with one cilium.
  • C — C for centerline.
  • 8 — looks like two centrioles side by side.

Under the hood it only changes meshSilhouetteRendering. Opacity (3d) is pinned at 1.0, and the setting is applied to every segmentation layer at once. I left the 2D “Opacity” in the Render panel alone on purpose — set that yourself if you need it.

Q · Cilia search (3D opaque)

C · Cilia centerline (3D semi-transparent)

8 · Centriole check (3D semi-transparent)

Installing it

Tampermonkey or Violentmonkey, create a new script, paste in eyewire2-transparency-toggle.user.js (or just drag the file into the manager). Then open EyeWire II and the button should show up in the top toolbar.

Limitations

  • There’s no settings UI — just the three fixed modes.
  • It won’t jump back to Q on its own when you open a new cell, because the platform doesn’t expose an enterTask event I could hook into. You’ll have to click it back.

Hope it saves someone a few clicks. Let me know if anything breaks on your setup.

2 Likes