View Full Version : Rendering: changing background color ??
robin 01-13-2003, 10:24 AM Hello there .. its me again
How can I change the color of the background when rendering in Maya ??
i dont want a black background but something lighter ... can this be made ?
http://pluto.imagemagician.com/images/winky/Clipboard1.jpg
thanks
Robin
|
|
womanonfire
01-13-2003, 10:30 AM
in the outliner choose a camera and pull up the attributes editor. there is a Background Color setting under the Environment tab... this changes the background color of the rendering.
robin
01-13-2003, 10:40 AM
womanonfire
Thanks a LOT ..... well answered and on top of that really fast
thanks again :D
womanonfire
02-26-2003, 05:04 PM
i was inspired by the script in this thread:
http://www.cgtalk.com/showthread.php?s=&threadid=8390&highlight=background+color
to try and make something similar which would toggle through render background colors. here is what i came up with. I saved it to a shelf button. It simple toggles through black, dark grey, light grey, white, and sky blue, but the colors could be changed to anything one needs.
it works but, i don't know _anything about mel, there are probably better ways to do this.
---------------------------------------
int $ci ;
if( $ci == 0 )
{
setAttr "perspShape.backgroundColor" -type double3 .7 .7 .7;
setAttr "frontShape.backgroundColor" -type double3 .7 .7 .7;
setAttr "topShape.backgroundColor" -type double3 .7 .7 .7;
setAttr "sideShape.backgroundColor" -type double3 .7 .7 .7;
$ci = 1;
}
else if( $ci == 1 )
{
setAttr "perspShape.backgroundColor" -type double3 1 1 1;
setAttr "frontShape.backgroundColor" -type double3 1 1 1;
setAttr "topShape.backgroundColor" -type double3 1 1 1;
setAttr "sideShape.backgroundColor" -type double3 1 1 1;
$ci = 2;
}
else if( $ci == 2 )
{
setAttr "perspShape.backgroundColor" -type double3 0 0 0;
setAttr "frontShape.backgroundColor" -type double3 0 0 0;
setAttr "topShape.backgroundColor" -type double3 0 0 0;
setAttr "sideShape.backgroundColor" -type double3 0 0 0;
$ci = 3;
}
else if( $ci == 3 )
{
setAttr "perspShape.backgroundColor" -type double3 .1 .1 .1;
setAttr "frontShape.backgroundColor" -type double3 .1 .1 .1;
setAttr "topShape.backgroundColor" -type double3 .1 .1 .1;
setAttr "sideShape.backgroundColor" -type double3 .1 .1 .1;
$ci = 4;
}
else if( $ci == 4 )
{
setAttr "perspShape.backgroundColor" -type double3 0.702403 0.854321 0.923;
setAttr "frontShape.backgroundColor" -type double3 0.702403 0.854321 0.923;
setAttr "topShape.backgroundColor" -type double3 0.702403 0.854321 0.923;
setAttr "sideShape.backgroundColor" -type double3 0.702403 0.854321 0.923;
$ci = 0;
}
print( "Color mode is: " + $ci );
womanonfire
02-26-2003, 05:08 PM
i actually altered the code from a script i found on highend3d called MKShiftBackgroundColor 1.1 and can be found here also:
http://www.algonet.se/~xybernic/ANIMATION/mels.html
CGTalk Moderation
01-14-2006, 04:02 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.