export segmentation through the UI allows users to set the index value for each mask layer, but this is not exposed for the python/action layer.