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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 12 December 2011   #1
Saving rendered image with MEL always saves .iff? - Solved

Hey

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?

Thanks.

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

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

Sorry!
 
Old 12 December 2011   #3
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
#
doTheRender()
#i set the options back for the user
cmds.setAttr("defaultRenderGlobals.imageFormat", renderGlobals)
 
Old 12 December 2011   #4
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 04:49 PM.


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