0

I have an imageJ macro that involves drawing a line on one slice of a stack. This works great but the only thing that slows this down is the prompt "Process all ### images? There is no Undo if you select 'Yes'."

Is there a way for me to have the macro automatically select "No" when this prompt appears?

Thanks

1 Answer 1

1

You can prevent the "Process stack?" dialog by running the Draw command with an option string containing a single space:

run("Draw", " ");

This will only draw on the current slice. If you instead want to draw on the whole stack, you can use:

run("Draw", "stack");

EDIT: The bug causing incorrect macro recording (run("Draw");) when using the D shortcut was fixed in a recent commit: it now records run("Draw", "slice");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.