PDA

View Full Version : Changing Mental Ray Image Format


jbravado
06-29-2009, 09:43 PM
Does anyone know how to change the mental ray image format via mel? In software, all the image formats correspond to a number. To change format, you can type:

setAttr "defaultRenderGlobals.imageFormat" 3; // this would change the format to tiff

When you switch to mentalRay, the numbers method only works for standard image formats. The lesser common ones, like EXR, default to the number 51 so you end up with multiple formats being 51.

The maya docs say that the image format for mentalray are stored in the mentalrayFramebuffer node though I still can't seem to locate it. Does anyone have an answer to changing the mental ray output image format in mel? Thanks

praburaj
06-30-2009, 01:12 PM
Hi,

Try this attribute (imfkey) this will solve your problem...

getAttr defaultRenderGlobals.imfkey
setAttr defaultRenderGlobals.imfkey -type "string" st

jbravado
06-30-2009, 05:02 PM
Excellent, thank you very much.

CGTalk Moderation
06-30-2009, 05:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.