Login  Register

Re: Detecting animated state in a macro?

Posted by ved sharma-2 on Sep 10, 2010; 10:25pm
URL: http://imagej.273.s1.nabble.com/Detecting-animated-state-in-a-macro-tp3686936p3686937.html

Hi Bill,

You can try the following code. You might have to adjust the wait time, depending on the your stack size and speed.

------------------------------------
a = getSliceNumber();
wait(1000);
b = getSliceNumber();

if(a!=b)
print("Stack is animated.");
else
print("Stack is not animated.");
-------------------------------------

Ved