PDA

View Full Version : need help disabling depth channel


technickel
04-28-2006, 01:28 AM
Hi all,
I am currently trying to use Maya 7.0's render.exe (the one in the bin directory). I am rendering a .ma file and want to get a .tif file when I am done. Currently, I get my .tif file, but in addition, I get a second .tif file as well with the same file name, but with _depth appended to it. For example:
RenderedImage.tif
RenderedImage_depth.tif

How do I keep render.exe from creating the _depth.tif ?
I am using the following arguments with render.exe (notice I am trying to turn off the depth channel with -depth 0):

-rd "C:/dest_dir" -im "rendered_image_name" -depth 0 -n 0 "C:/source_dir/super_cool_model.ma"

Any help with this would be appreciated!

Thanks,
technickel

lazzhar
04-28-2006, 08:49 AM
Hey why not opening the scene in Maya and just uncheck the z-depth(Depth Channel) from render global then save.
Or if you don't want to run Maya for that, open and edit your scene file with a text editor and add: setAttr "perspShape.depth" 0; to the camera attributes then save.

technickel
04-28-2006, 04:29 PM
This process is running in an automated fashion on a high number of .ma files, there is no way to open each one and turn off the z-depth. I do have a MEL script that is run right before render happens, so I would be able to change that attribute you mentioned. I'll give it a shot. Thanks!

technickel
04-28-2006, 04:56 PM
Unfortunately, when I added setAttr "perspShape.depth" 0; to my mel script I still got the _depth.tif. Also, in case it is important, my mel script is used with render.exe using the -preRender flag. So, to update the command line I provided before, this is the command line including the mel script:

render -preRender "my_test_script.mel" -rd "C:/dest_dir" -im "rendered_image_name" -depth 0 -n 0 "C:/source_dir/super_cool_model.ma"

CGTalk Moderation
04-28-2006, 04:56 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.