How can get id slice?

OK, I think I am beginning to understand. You want to capture and log the image volume location where you click when using Segment Editor tools, is that correct?

I’m not sure whether there is an easy way to capture that information (the location of a click) while using Segment Editor effects, because I believe the Segment Editor effects capture the mouse click events and I’m not sure where you would intervene or get a signal from them to do your logging. @lassoan, @pieper, or @mau_igna_06, am I correct here? Is there an event @nicdubovic could respond to to achieve this logging while using Segment Editor effects?

When you are not in Segment Editor, an easy way to record locations (which you can then translate back into voxel array coordinates if desired) is through placing Markups control points.

You might find this discussion helpful: How to capture right clicked