View Full Version : hwRender to specific location

08 August 2012, 06:53 PM

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.

08 August 2012, 09: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;

08 August 2012, 10:31 PM
Thanks, I really appreciate the great help you always give!

CGTalk Moderation
08 August 2012, 10: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.