PDA

View Full Version : hwRender to specific location


fghajhe
08-07-2012, 07:53 PM
Hi,

I am working on a mel script that uses the hardware renderer to render some images. The problem is I need to specify the directory that the hwRender cmd saves the image to. It seems to just save to project/images/temp/. Is there anyway to do this? Thanks.

http://download.autodesk.com/global/docs/maya2013/en_us/Commands/hwRender.html

NaughtyNathan
08-07-2012, 10:32 PM
last time I used the hwRender command was in Maya 7.0 so maybe they updated since then (but judging by your request probably not...) but when I did it I got around this by capturing the rendered file name and then simply renaming (using sysFile) to the correct path...
string $renderedImage = `hwRender -camera $camera`;
sysFile -rename ($outputPath+"render.tga") $renderedImage;

fghajhe
08-07-2012, 11:31 PM
Thanks, I really appreciate the great help you always give!

CGTalk Moderation
08-07-2012, 11:31 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.