Hi, everyone! As a newer to the macro script, I want to export the 3D color surface as .obj file. Although the script can give the 3D view as manual operation step-by-step, no file is saved. And there is no error in the console. The code is listed as follows:
open("./Additional file 1/T010_segmentation.tif"); call("ij3d.ImageJ3DViewer.setCoordinateSystem", "false"); run("Show Color Surfaces", "use=[Create New 3D Viewer] resampling=1 index=0 radius=1"); call("ij3d.ImageJ3DViewer.exportContent", "WaveFront", "./untitled.obj"); //|--> no file is saved call("ij3d.ImageJ3DViewer.close"); run("Close All");
I am not sure whether the problem is caused by which window is actived. Thanks for you great help in advance.