These are chat archives for fiji/fiji

15th
Mar 2016
Ulrik Günther
@skalarproduktraum
Mar 15 2016 14:47
@ctrueden: i know you already sent me the url for the repl repo some time ago… but i lost it :( could you send it again please? thanks :)
Stefan Helfrich
@stelfrich
Mar 15 2016 14:48
oh wait. that doesn’t exist anymore..
Ulrik Günther
@skalarproduktraum
Mar 15 2016 14:49
:D nah, if i remeber correctly, it was a dedicated repo
but thanks :)
on the other hand, if it was maybe merged in common that might also be the reason i’m not finding it anymore :D
Stefan Helfrich
@stelfrich
Mar 15 2016 14:49
I was looking for it at some point too. back then the link was still working
Ulrik Günther
@skalarproduktraum
Mar 15 2016 14:50
let’s see where curtis hid it :D
Stefan Helfrich
@stelfrich
Mar 15 2016 14:50
scijava/scijava-common@2b85904
there it is :)
Ulrik Günther
@skalarproduktraum
Mar 15 2016 14:51
cool, thanks :)
Stefan Helfrich
@stelfrich
Mar 15 2016 14:53
you are welcome!
reminds me of keeping my local copy of the repo up-to-date..
Curtis Rueden
@ctrueden
Mar 15 2016 15:08
It is merged to SJC master now, IIRC.
And I updated the graphical script interpreter in scijava-ui-swing too.
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:10
does it make sense to have my scenegraphing lib (we discussed a bit at the knime hackathon, if you remember ^^) depend on scijava-common or would you advise i only get out the repl bits?
Because I wanted to add a sidebar for inspecting variables, and another for choosing language.
Depend on scijava-common.
I would rather not split out the interpreter, although if you really feel strongly, I would consider doing it.
The interpreter depends on org.scijava.script which depends on both the plugin framework, and the module framework. Separating all that out would be most unfortunate.
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:11
i see
you know, i’ll just give it a shot
Curtis Rueden
@ctrueden
Mar 15 2016 15:11
It really is not a large dependency, and you get lots of goodies from it. :-)
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:12
let’s see how it works :)
Curtis Rueden
@ctrueden
Mar 15 2016 15:12
OK, cool. Let me know how it goes!
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:12
yeah, i’m just browsing the repo and it looks pretty nice
can you just give me a quick hint where to start for making the repl accessible? from what i got from our discussion so far is basically uses SciJavaServices?
Curtis Rueden
@ctrueden
Mar 15 2016 15:25
@skalarproduktraum Do you want the CLI one, or a GUI one?
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:25
for the final product, not sure yet… probably both
cli one is easier to integrate for the moment right?
Curtis Rueden
@ctrueden
Mar 15 2016 15:25
For CLI, see org.scijava.script.ScriptREPL. The main method shows how to call it.
The GUI one is not merged and released yet, unfortunately. It will be part of the scijava-ui-swing component.
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:26
cli is fine for the moment… in the end i’d probably integrate it with the 3d env anyway
Curtis Rueden
@ctrueden
Mar 15 2016 15:27
And here is an example of calling the GUI.
Oh yeah, that's a good idea. :-)
Will be super cool. The ScriptREPL class should have enough granularity in the API for you to do that.
Here is an example UI component that uses it. You would use it similarly, but from the 3D environment rather than via Swing.
Although probably you can just call the evaluate method of ScriptREPL rather than unwrapping it.
(Depends on what you need to achieve.)
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:29
great, thanks for all the information :)
Curtis Rueden
@ctrueden
Mar 15 2016 15:29
Basically, evaluate is "high level", trying to support multi-line statements passed bits at a time.
You're welcome. I'm happy to test anything later, too. On vacation this week though. ;-)
Ulrik Günther
@skalarproduktraum
Mar 15 2016 15:38
oh, cool! have fun vacationing :) going anywhere?
Ulrik Günther
@skalarproduktraum
Mar 15 2016 16:41
@ctrueden @kephale: here’s btw a quick video of what scenery’s rendering currently looks like: https://www.dropbox.com/s/npj6r805cuo529d/sponza_ssao.mov?dl=0 my trial model is a bit far away from biology, still i think it looks good and is making great progress :)
Gabriel Einsdorf
@gab1one
Mar 15 2016 19:36
Hi just a quick scripting question: How do I annotate a Parameter in Javascript?
in java I can write
    @Parameter(required=false, label=“This is a label”)
    private double testvalue;
nvm just found the wiki page :http://imagej.net/Script_parameters
:D