Open an image sequence using a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Ben
Reply | Threaded
Open this post in threaded view
|

Open an image sequence using a macro

Ben
Dear All,

I'm trying to automatically open an image sequence using a macro WITHOUT to have the Image sequence dialog pop up...

Here is my macro code:

filepath=File.openDialog("Select a dm3 File");
imageDir=File.directory;
fileList = getFileList(imageDir); 
numberSlice=fileList.length;
run("Image Sequence...", 
  "open=[&filepath]"+
  " number="+numberSlice+
  " starting=1"+
  " increment=1"+
  " scale=100 "+
  "file=[.dm3] "+
  "sort");

Unfortunately, each time I run the macro the Sequence Option dialog popup...

Is there a way to NOT display it since I already pass all the required parameters in the macro?

Thanks,

Benjamin