I'm currently writing my first MEL-Script. It is a script that exports camera information to files. Actually it creates for every timestep a new file (camera1_0001.file) and writes the position and other useful information about the camera into that file. Now I want to have also the rendered image for every timestep. There is the simple command render; in MEL but although I tried playing around with the renderGlobalsNode; I couldn't find the information I want. Do I have to use the batch renderer? I want the images like that: camera1_0001.png, camera1_0001_depth.png.
I'm searching now for quite a few time on the problem how to set in Render Globals the "Frame/animation ext". I just can't find that one. Anyone has a clue?
And another small problem: Anyone already integrated Gelato, NVIDIA's new renderer into a MEL-Script? More precise, I'm looking for the values for setting the image format.
I figured out that
setAttr defaultRenderGlobals.imageFormat 51;
sets a custom image format but I want to select OpenEXR explicitly. Anyone know's how?