-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
figureModel_global_var #216
Conversation
Makes this available to the console for scripting manipulation of figure
@bramalingam Want to try playing with this? I can look over your shoulder or point you at docs etc? |
@will-moore : I should be fully setup with my laptop by tomorrow. Can start playing around with it tomorrow, if that sounds fine. |
Biggest bang for your buck? :) Could your example usage go somewhere, @waxenegger ? (I assume as javascript) |
Do we start to move some of the examples to https://github.com/ome/community-docs or another repo? |
It looks like @waxenegger used the Movie figure example above. |
Another example: This code will load ratings for all selected images and position the images into a histogram of ratings:
|
Nifty! |
Are these "figure scripts"? :) |
@joshmoore I don't think these are "Figure scripts" since we've used that term previously to refer to Python OMERO.scripts that create figures. |
re naming: yeah, I definitely see how "scripts" is now taboo. re gists: no, unfortunately they cannot (easily) belong to the repo. Unfortunately this is going to become another type of download that we will have to manage. (I've been searching for a solution for this myself) |
I was looking for option for gist under repo too but that will not be an option |
All examples added to https://trello.com/c/5f4RniW4/19-omerofigure-plugins |
As discussed with @bramalingam, this small change makes the
figureModel
into a global variable so that it is accessible to the browser devtools console.See https://trello.com/c/5f4RniW4/159-omerofigure-plugins
This allows users to script various changes to the figure.
E.g. pasting this code into the console will make a 'split-view' figure from all selected panels in the figure:
Movie figure
To test: