for example:
on a rop named smoke_bty:
camera = "/obj/sc0034_trackcam_mp1" vm_picture = $SHOT_PATH/image/$TASK/${SHOT}_${TASK}_${SCENE_NAME}_${OS}_v`padzero(4,$VER)`/`opname(chsop('camera'))`-${RESNAME}_${COLORSPACE}_exr/${SHOT}_${TASK}_${SCENE_NAME}_${OS}_v`padzero(4,$VER)`-`opname(chsop('camera'))`-${RESNAME}_${COLORSPACE}.$F4.exr
using exports:
/ -> setenv VER=1 / -> setenv TASK="fx-smoke" / -> setenv SCENE_NAME = "shipcrash" / -> setenv RESNAME = "3kred" / -> setenv COLORSPACE = "acescg" / -> setenv SHOT_PATH = "F:/data/projects/coolvfx/sc0034" / -> setenv SHOT = "sc0034"
If you want the render pass name in the file name, I think you can do that using the extra image planes list, and enabling ‘different file’. This allows for a unique path for each image plane.
Another option to try is “Extract Image Planes” option (add from render properties). I haven't experimented with this option, but I know this is used by the baking tools.