Labels and default values for @parameter in scripts
Posted by
Michael Entrup on
Apr 30, 2015; 11:28am
URL: http://imagej.273.s1.nabble.com/Labels-and-default-values-for-parameter-in-scripts-tp5012655.html
Hi,
using script parameters might be a nice solution to write small scripts
that need user inputs. But there are some drawbacks that keep me away
from using script parameters.
In plugins you can define labels and default values for parameters. In
scripts this is not possible.
The default values are strange. When using @Integer the default value is
'-2.147.483.648'.
You can't select the full input field by using a double click. The minus
sign is not selected, when double clicking the number.
Using [Tab] to switch between fields works bad. Normally I expect that
the content of the next input field is selected, but only the cursor is
placed at the next field. [Ctrl]+[A] is necessary to replace the default
value.
The attached screen shot shows the dialog that is shown, when using 4
different script parameters.
Is all this intended, or is still work in progress?
Except this page [1] I can't find any documentation on using script
parameters in ImageJ. Is there some more documentation, I was not able
to find?
Best regards
Michael
[1]
http://imagej.net/Script_parameters--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html