Make plugin aware of macro batch mode
Posted by Michael Doube on Jun 25, 2009; 10:13am
URL: http://imagej.273.s1.nabble.com/Make-plugin-aware-of-macro-batch-mode-tp3692010.html
Hi all,
I have a plugin that automatically calculates default values then
presents them to the user in a dialog before running. The defaults are
dependent on image dimensions and voxel size. If I run the plugin from
a macro, I can enter the variables as a string. However, if I want to
run the plugin over all different-sized images in a directory, reusing
the same default values is not appropriate.
Is there some way to make a plugin aware that it is being called from a
batch mode macro and use its own calculated values? The way I thought of
was to put a check box in the dialog that would prevent the variables
from being updated by the macro.
Mike