Render exr files for Nuke (zips)
This script will create exr files from vrimg files rendered with Vray; they are saved as zips, and half float for best compatibility when working in Nuke.
The way it works is very simple, it takes the frame saved as vrimg format saved by vray, and right after it creates a exr saved as zips and half-float, by running the tool included with vray vrimg2exr.exe; This is done with a callback script post rendered frame, so if is a sequence of frames, they will all get converted as they finish rendering.
In order to make the script stick, if you send this renderings to a render farm, one has to check the Pre-Render scripts option of the render settings, with the location of the script that will call the vrimg2exr process.
Alternatively, if you want this to happen always in the background anytime you submit a render to be saved as a vrimg, you can save the script on the startup script folder of all your computers (including your rendernodes) so the callback script will be active every time 3dsmax is launched.
You may want to delete the vrimg files after you have check the exr's as they are quite big files.
There is one variable that needs to be modified depending on your 3dsmax and vray version:
''vrimgLocation = "C:\\Program Files\\Chaos Group\\V-Ray\\3dsmax 2014 for x64\\tools\\vrimg2exr.exe"''