Sample image and/or macro code
z_coord = 3 * 1431.5
layer = layerset.getLayer(z_coord)
I am trying to extract an arbitrary z-layer from my image stack.
I’ve tried calculating the z-coordinate of the layer (say, layer 3 = 1431.5), but it seems that number is not exact enough to extract that layer (it will say that the layer does not exist). How do I get the z-coordinate of a layer so that I can obtain the layer as an object?