Frame/animation Ext, Openexr Image Format

Hello everyone,

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.

Maybe some nices sites I found as a little gift for those who help:
http://openwiki.com/ow.asp?How+to+find+stuff+using+mel
http://accad.osu.edu/~aprice/courses/694/gui.html
http://www.robthebloke.org/mel/

See you soon.

gentlesea.

QUOTE(gentlesea @ 03/26/07, 08:27 PM) [snapback]262902[/snapback]
Do I have to use the batch renderer

No tough that is the way you will want to do it.

Hello,

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?

Greetings

gentlesea

Hello,

I found the solution to my problem.

CODE
setAttr "defaultRenderGlobals.outFormatControl" 0;

changes the Frame/animation ext. Just try different numbers to find out what they do. Render settings will refresh in realtime...

CODE
setAttr "defaultRenderGlobals.gelatoImageFormat" 6;

can be used to play with Gelato. In case anyone was interested...

Greetings

gentlesea