Export volume data in segment?

Found this thread: Get label map node from segmentation node that also discusses programmatic use. Let me study that first!