Posted by
ctrueden on
Sep 21, 2016; 4:26pm
URL: http://imagej.273.s1.nabble.com/What-are-the-w-and-h-values-for-a-ROI-tp5017089p5017226.html
Hi Matt & everyone,
Ryota Homma wrote:
> At least in Fiji, a new menu bar entry will appear if you create a new
> folder under plugins/Scripts/ and put your macros.
>
> For example, if you put your macros in the folder
> Fiji.app/plugins/Scripts/extra/ (assuming you did not change the name
> of application folder "Fiji.app"), you will see a new menu entry
> "extra" in the menu bar.
>
> I don't remember where I learned this feature, but it is working in my
> copy of Fiji (Windows version).
This is a feature of core ImageJ2, which is why it works in Fiji.
As of this writing, the following directories are scanned for scripts (a
macro is a flavor of script):
* scripts
* plugins/Scripts
* plugins
For the technically inclined: you can verify this using the following
Groovy script in the Script Editor:
// @ScriptService ss
// @OUTPUT String dirs
dirs = ss.getScriptDirectories()
Note that the latter two locations (plugins and plugins/Scripts) are
enabled by the ImageJ Legacy component [1] for backwards compatibility. The
canonical best place to put your scripts these days for ImageJ2 is the
"scripts" folder.
Regardless of which place you use, Ryota is right that it will create a
menu structure matching the nested folder structure you use there.
Matthew Pearson wrote:
> Curtis, it looks like the above might be a good solution but don't
> know if its broad enough to be a topic on the wiki?
IMHO, something is better than nothing. Call the page "Organizing
Extensions" or similar, and preface with a statement saying that this page
catalogues some possible nice ways to group and organize related
functionality.
See also this forum thread:
*
http://forum.imagej.net/t/customize-menus-in-fiji/2442There, we discuss our desire to improve the organization of Fiji's menu
structure.
However, I think an "Organizing Extensions" page would be more general and
also talk about other approaches: using the tool bar, shortcut keys in
startup macros, etc.
Regards,
Curtis
[1]
https://github.com/imagej/imagej-legacy/blob/imagej-legacy-0.23.1/src/main/java/net/imagej/legacy/LegacyService.java#L514-L515--
Curtis Rueden
LOCI software architect -
http://loci.wisc.edu/softwareImageJ2 lead, Fiji maintainer -
http://imagej.net/User:RuedenDid you know ImageJ has a forum?
http://forum.imagej.net/On Wed, Sep 21, 2016 at 10:32 AM, Ryota Homma <
[hidden email]> wrote:
> At least in Fiji, a new menu bar entry will appear if you create a new
> folder under plugins/Scripts/ and put your macros.
>
> For example, if you put your macros in the folder
> Fiji.app/plugins/Scripts/extra/ (assuming you did not change the name of
> application folder "Fiji.app"),
> you will see a new menu entry "extra" in the menu bar.
>
> I don't remember where I learned this feature, but it is working in my
> copy of Fiji (Windows version).
>
> Best,
> Ryota
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html