Image sequence macro: difference between macro recorder and macro editor?

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

Image sequence macro: difference between macro recorder and macro editor?

ciml
This post was updated on .
Hi,

I'm trying to write a macro that opens images sequences that I will use further.

The macro recorder returns this command:

run("Image Sequence...", "open=C:\\Users\\hetmadmin\\Desktop\\120622\\Video_1\\120622_1_w1CSU-laser488-640_t1.stk number=6 starting=1 increment=1 scale=100 file=[] or=[] sort");
The sequence is properly opened



If I write this command in a macro and if I write a similar command to be more general, there is no error but nothing appends (no image loaded)... Ould you help me please?


str=dir+STK_File_Name[i];
k=NFiles_Per_Stack[i];
print(str);
// First line, same as macro recorder, nothing is opened
run("Image Sequence...", "open=C:\\Users\\hetmadmin\\Desktop\\120622\\Video_1\\120622_1_w1CSU-laser488-640_t1.stk number=6 starting=1 increment=1 scale=100 file=[] or=[] sort");
// Second line with loop parameters, nothing is opened
run("Image Sequence...", "open=str number=6 starting=1 increment=1 scale=100 file=[] or=[] sort");



Finally, in the log window, str is equal to:

C:\Users\hetmadmin\Desktop\120622\Video_1\120622_1_w1CSU-laser488-640_t1.stk


So, what is the problem please?
Thanks in advance, best regards.

Sébastien