I got a reply from Benjamin Schmid directly and like to share it here for
completeness:
> But how can I access the volume size or coordinates of the center to
calculate
> the affine matrix for rotation around the center from within the macro?
This depends actually. Do you also add the volume via the macro? Then
you can get the center from the image you added:
getVoxelSize(pw, ph, pd, unit);
centerx = pw * getWidth();
centery = ph * getHeight();
centerz = pd * nSlices;
> Is it possible to get a list of visualized volumes and select them from a
> imagej macro?
Not yet, I can add that if you need it. You can select an object in the
3D Viewer using
call("ij3d.ImageJ3DViewer.select", nameOfObject);
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html