|12 December 2003||#1|
Join Date: Aug 2003
Control color / alpha / depth via MEL
A simple(?) question: I though I'd write some scripts to help me setup a few scene files for rendering - so I don't forget something in one file. Anyhow, materials are OK, lights, cameras, action.. ...but I would like as the last tweak to setup what channels to render: RGB / Alpha or DepthMap.
I can find all options of the render setup in the defaultRenderGlobals / Quality & resoution nodes BUT the flags I am looking for.
|12 December 2003||#2|
Oliver S. Magno
Join Date: Jun 2003
i think these are you looking for,
for the RGB channel:
setAttr "camera.image" 0;
where camera is the name of your renderable camera.
for Alpha channel:
setAttr "camera.mask" 0;
setAttr "camera.depth" 0;
i assume that you know that the value of 0 is off and the value of 1 is on.
just make a script that will trigger the value of these attributes. then in the render globals put the name of the script in the pre Render MEL options. so now before maya renders your scene it will execute first the script and then renders it.
i hope this is clear, if not just reply into it and we'll see what we can do.
|01 January 2006||#4|
Join Date: Sep 2003
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.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|