Re: [cgkit-user] Background color in viewer.py
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2010-05-22 16:45:46
|
Hi Alex,
al...@ci... wrote:
> Is it possible to change the background color in viewer.py from the scene
> script? How?
Yes, you can set the "background" global option like this:
Globals(
background = (0.5, 0.5, 1.0)
)
I still have to put this into the docs. So far, it's only mentioned in
viewer.py itself. Here's a list of options that can be used with the
viewer tool (most of them also have a special command line switch):
background: Background color
fullscreen: Boolean indicating if a full screen view should be used
stereo: Stereo setting (None, "vsplit", "glstereo")
eyedistance: Eye distance for stereo display
polygonmode: Drawing mode ("fill", "line", "point")
navigationmode: Selects the navigation mode ("maya", "max", "softimage")
resolution: (width, height)
fps: Framerate
camera: Specify camera to be used
Cheers,
- Matthias -
|