PDA

View Full Version : Maya 2011 - Save image from Render Window


chafouin
08-16-2010, 07:54 AM
Hey guys,

I've got a funny bug here. In maya 2011 (hotfix 3), when I want to save my image in the Render window, I can only save in IFF. I can choose the format, for instance png, and then it saves the file as a png.iff. Stupid eh?

I usually use batch render or command line so I've never spotted this bug before. Do you guys have the same issue, or is it just me?

3Dmonkey
08-16-2010, 08:36 AM
I've run into this bug previously and logged it. However, it seems to be fixed for me in hotfix3.

Maya still writes out jpegs with a .jpeg extension though, not .jpg as has been the case until 2011...(sigh)

mduvekot
08-16-2010, 10:59 AM
Here it works as it should with Maya2001 Hotfix 3 under OS X 10.6.4.

Ash-Man
08-16-2010, 02:37 PM
It works fine on my side Win 32
are you sure you have "clean" reference
temporarily rename the 2011 folder to old-2011 and restart Maya

chafouin
08-16-2010, 07:44 PM
Ok I fixed it by reinstalling maya. I did modified the renderwindow.mel at some point and certainly copy it over the hotfix 3 version. And of course I forgot to create a back up. Next time I won't touch the Program Files mel scripts, and just override them with a user one ;)

Cheers!

Sorath
08-17-2010, 01:17 PM
I thought I'm the only one.
If you change the image format in the renderglobals to jpg it saves jpg images.
so - since I save a lot of preview renderings as shading artist I wrote this little script - maybe someone can use it.

it temporarily sets the output format to jpg and then back to exr.
and saves the image in the path you'll specify with the name of the scene file.

path must be with a backslash at the end
like this:
c:\blabla\ugugu\images\

script is python

import maya.cmds as mc import os
btPath = mc.file (query=True, location=True)
fileName = os.path.basename (btPath)
cleanName = fileName.rsplit ('.mb')
btInput = raw_input ('please insert path')
print btInput
mc.setAttr ('defaultRenderGlobals.imageFormat', 8)
editor = 'renderView'
mc.renderWindowEditor(editor, e=True, writeImage=btInput + cleanName[0] + '.jpg')
mc.setAttr ('defaultRenderGlobals.imageFormat', 51)




cheers
Bastian

CGTalk Moderation
08-17-2010, 01:17 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.