clean block that was commented out anyway
reorder code to process multiple surfaces
reorder code to process multiple surfaces
reorder code to process multiple surfaces
process all surfaces in the selecte surface object
make sure a surface is selected
use name from open file as template
check for working Imaris connection