Tasks/SetAllCamerasBackgroundColor.py

Tasks/SetAllCamerasBackgroundColor.py
1 # Copyright 2009 Autodesk, Inc. All rights reserved.
2 # Use of this software is subject to the terms of the Autodesk license agreement
3 # provided at the time of installation or download, or which otherwise accompanies
4 # this software in either electronic or hard copy form.
5 #
6 # Topic: FBCamera, FBColor
7 #
8 from pyfbsdk import FBSystem, FBColor
9 
10 # We simply iterate thru all the cameras in the system and set
11 # the background color to a new value... Always the same in this case.
12 for lCamera in FBSystem().Scene.Cameras:
13  lCamera.BackGroundColor = FBColor( 0.2, 0.4, 0.6)
14 
15 # Cleanup everything.
16 del( lCamera )
17 del( FBSystem, FBColor )