NEW SCRIPT (inspired by @twister2 )
Workshop v. 1.0
TamperMonkey link:
https://github.com/ChrisRaven/EyeWire-Workshop/raw/master/workshop.user.js
This one took me much longer that I hoped for, but here it is.
It’s a tool to add many cells to the same overview, change their colors and take funny screenshots, lol.
After adding the script to TM and refreshing EW, you should see a new position in the top right menu (the hamburger icon), saying “Workshop”.
When you click that entry, it’ll show a screen similar to this one:
To the left there’s a list of action buttons called Control Panel. Under the panel is an Info Panel, and below it is a list of cells currently added to the workspace (saying “(empty)” at the beginning).
If you don’t have the Utilities script installed or dataset borders turned off, then, of course, the cuboid at the center of the screen won’t be visible.
To start adding cells to the workspace, click the “Add Cells” button. You should see a popup similar to this:
It might take a while to load the list (several seconds), because the list contains all currently completed cells (and some, that aren’t completed yet). The list will be updated fairly regularly (I hope so I have to built a tool to do it at least semi-automatically).
To select a cell, click on it once. To unselect, click again. You can also add cells manually by typing their IDs in the field labeled “Manual adding”. The IDs should be separated by spaces or commas (or both). IDs of selected cells will be displayed just under the input field:
You can see, that the list contains both the cells added manually and those selected from the table.
Don’t worry about duplicates. If you type the same number many times, or type a number and select the same cell from the list, it will still be added only once to the workspace.
You can also search for cells using the search field in the top right corner. To search for a phrase, use quotes, e.g. “Sector 8” (with the quotes) will show you all the cells, which names or descriptions contain that exact phrase.
When you’re done selecting the cells, press the Add button and wait for the cells to be loaded. You can always add more cells later or remove already added cells from the workspace.
Here’s a result, I get after selecting some random cells from the Sector 8 and clicking the Add button:
You can see, that the cell list on the left is now filled. Each row corresponds to a single added cell.
The checkboxes to the far left are to show/hide cells without removing them from the workspace.
The coloured squares show the color of a given cell. When you click on the square, you’ll see a color chooser, which allows you to select any color for that cell.
Next is the ID of the cell. If you hover over the ID and wait a second, you’ll see a tooltip with the cell’s description.
Then there’s a set of three buttons:
A - makes the cell active. If clicked, the A button’s background becomes blue and you can select and inspect cubes in that cell. Only one cell can be active at any given moment.
B - blinks the cell to help you identify it.
R - removes the cell from the workspace (with a warning before removing).
You can also see, that sometimes color of the cell and color of the corresponding cube doesn’t match. It’s a bug, which I didn’t solve as of now. To fix it, just press the B button to blink the cell and after blinking it will have the correct color.
If you want to add many cells, I’d suggest to add them in parts. Otherwise it will take much time and some cells might not load fully because of a timeout.
Here’s a result of the entire Sector 8 (or a closeup of the Sector) I made with an earlier version of the script:
Under the “Add Cells” button, there’s “New” button, which simply clears the workspace (with a warning, if something wasn’t saved).
Then you have two buttons: “Save” and “Save as”. Both allows you to save your work.The first one is for quick saves, if you have already saved your workspace. It will simply replace the previous workspace (if possible). The other one will show a popup allowing you to select name, description and target of the saving workspace:
If you decide to save it on server, there’ll be additional option to choose - rights:
If you decide to save a workspace in localStorage (default option), it will save it so the workspace will be available only on a given browser and account.
If you save a workspace as a file, additional popup will appear (the standard system popup), so you can select, where you want the file to be saved. The files are saved with “.ewc” extension. I was going for “.eww” from “EyeWire Workspace”, but the extension didn’t sound very good So I decided to choose “.ewc”, which could be expanded as “EyeWire Cells” or “EyeWire Circuit” or anything else you like
If you want to save your workspace to the server (my server, not EW’s), you can select, if the workspace should ba available only for you - nobody else will see it; readable for everybody - everybody will see the workspace, will be able to open it and save it under their own name, but the original workspace won’t be touched - only you can change it. The third option is, that the workspace can be seen, modified and removed by everybody.
You can always open a workspace and save it in another place, if you want (e.g. open a file and save to server).
The next button is “Import from file”. It simply allows you to open any of your “.ewc” files.
After that, is the “Browse” button. It allows you to browse and open workspaces both from the localStorage and from the server:
You can select the source in the top left corner of the popup.
If you want to open a workspace, select it from the list and click the Open button in the bottom right corner.
Here you can also remove workspaces, if you have the rights to do so - you can remove you localStorage workspaces, you private workspaces, your readonly workspaces and the workspaces, which are available for everybody with full access. So, you can’t remove other people’s readonly and private workspaces (you can’t even see the latter ones).
On the screenshot above, you can see, that there’s currently only one workspace saved on the server. It’s the one I made earlier. You can also see, that only I can modify it, but all of you can see it and make copies of it (by saving as…).
The last button is “Back to Game”, which simply transfers you back to the EyeWire.
Also, the chat is hidden, while you’re in the Workshop mode, but you can still see the blinking tab title in your browser (like “scouts says…”, etc.), so you can go back to the normal mode at every moment and read the chat (none of the messages sent while you were in the Workshop mode are removed).
WARNINGS:
Sometimes it can happen, that if you refresh the page or close the browser while in the Workshop mode, some settings might be changed and you’ll have to reset them manually. I’ve tried to fix it, but am not sure, if I done everything. The settings are: “Show Player Activity Icons” and “Outline Glow Intensity”. Also, the selected Heatmap might be changed to None.
If you switch to Workshop to quick after refreshing / entering EW, the SL and Inspector Panel might stay visible. You can turn on/off Inspector Panel at any moment using the Shift Key.
Loading the list of the cells (after pressing the “Add Cells” button), might take several seconds, even half a minute. It depends mainly on the speed of your computer (probably, lol).
If you take a look in the browser’s console, you can see some errors, especially when typing something or clicking on cubes of an inactive cell. The errors are ok, I just wasn’t able to deal with them, because they come from the EW itself (EW still thinks, we’re in the normal mode), but they shouldn’t cause any problems.
If you see any problems (I guess, there are still several of them, despite my best efforts to find and fix everything), just note them here in this topic.
If you have any suggestions or ideas also add them here.
Have fun