automatic point tool?

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

automatic point tool?

Mendoza Rodriguez
Hello,
I am recording changes in coordinates across stacks of about 200  
images. To do this I rely heavily on the point tool, by activating the  
"auto-next slice" feature. I was wondering if there is a plugin out  
there that would simply measure the coordinates of the mouse pointer  
when the stack is animated. In other words, I'd like to follow the  
movement of a given object across time (and the stack), and get the  
coordinates of the mouse pointer without clicking.
If such a plugin does not exist, would it be possible to do it as a  
macro?
Best,
Mendoza
Reply | Threaded
Open this post in threaded view
|

Re: automatic point tool?

jmutterer
On Wed, Jul 29, 2009 at 11:37 AM, Mendoza Rodriguez wrote:

> I'd like to follow the movement of a given object across time (and the
> stack), and get the coordinates of the mouse pointer without clicking.


The following tool macro does this.


macro 'oneClickTracker Tool - C000T3f181' {
  getCursorLoc(x, y, z, modifiers);
  while(modifiers&16!=0) {
    wait(1000);
    getCursorLoc(x, y, z, modifiers);
    if ((x==-1)&&(y==-1)) {x=xs;y=ys;}
    if (!isKeyDown('shift')) setKeyDown('shift');
    makePoint(x,y);
    xs=x;ys=y;
    if (z+1==nSlices) exit();
    else run("Next Slice [>]");
  }
}
//

Sincerely,
Jerome.