Hi everyone,
I'm trying to run 3D Viewer automatically from a different plugin.
I have been trying to it as Albert Cardona says at:
http://albert.rierol.net/imagej_programming_tutorials.html#How to
automate an ImageJ dialog
It is:
Thread thread = Thread.currentThread();
String originalName = thread.getName();
thread.setName("Run$_run3DViewer");
Macro.setOptions("Image='" + IJ.getImage() + "'");
IJ.run("3D Viewer");
Macro.setOptions(thread, null);
thread.setName(originalName);
It launches 3D Viewer, but I get the empty 3D Viewer window. It's
supposed to get the default parameters if they are not set, so the only
required one should be "Image".
If I use the macro recorder and sets it to record as "plugin", I get
some code containing the following:
IJ.runPlugIn("ImageJ_3D_Viewer", "");
call("ij3d.ImageJ3DViewer.add", "12205_000008.xmp", "None",
"12205_000008.xmp", "0", "true", "true", "true", "2", "0");
But I don't know where that "call" instruction comes from. It doesn't
work and "IJ" class has not such a method.
Can anybody help me?
Sincerelly,
Juanjo Vega.