Saving rendered image with MEL always saves .iff?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  12 December 2011
Saving rendered image with MEL always saves .iff? - Solved


I'm working on a script to automate the process of rendering out a skybox from a 3d scene. It's all going well so far except i'm having problems saving out the images I render to the correct format.

render sb_top;
renderWindowSaveImageCallback "renderView" "C:/Users/Khornelius/Desktop/Art/SSZ_Envs/Renders/test.tga" "Targa";

I got the script by just cut and pasting what I see in the Script Editor when I save a rendered image. It seems to specify the image format but when I run the script I find it's saved the render as an .IFF file.

Any ideas?


Last edited by polypixel : 12 December 2011 at 05:54 PM. Reason: Issue solved.
  12 December 2011
Oh dear, I've been silly.

Changing the file format in the Common Render Settings fixed it.

  12 December 2011
you can do this programatically also. I have it in python but it the same in mel:

#i save the format of the user (so i don't mess up his preferences)
renderGlobals = cmds.getAttr("defaultRenderGlobals.imageFormat")
#i set it to something different like png
cmds.setAttr("defaultRenderGlobals.imageFormat", 32)
#i do my playblast or render or whatever
#i set the options back for the user
cmds.setAttr("defaultRenderGlobals.imageFormat", renderGlobals)
  12 December 2011
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 09:16 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.