from pyfbsdk import FBTime, FBModel, FBModelCube, FBCamera, FBCameraSwitcher, FBRenderer, FBScene, FBSystem, FBVector3d, FBPlayerControl
lModel1 = FBModelCube("My Cube")
lModel1.Scaling = FBVector3d(20, 20, 20)
lModel1.Show = True
lModel1.Visible = True
lCamera1 = FBCamera("Camera 1")
lCamera1.Show = True
lCamera1.SetVector( FBVector3d( 300, 100, 000 ) )
lCamera1.LookAt = lModel1
lCamera2 = FBCamera("Camera 2")
lCamera2.Show = True
lCamera2.SetVector( FBVector3d( 0, 100, 300 ) )
lCamera2.LookAt = lModel1
lCamera3 = FBCamera("Camera 3")
lCamera3.Show = True
lCamera3.SetVector( FBVector3d( -300, 100, 0 ) )
lCamera3.LookAt = lModel1
lCamera4 = FBCamera("Camera 4")
lCamera4.Show = True
lCamera4.SetVector( FBVector3d( 0, 200, -500 ) )
lCamera4.LookAt = lModel1
FBSystem().Scene.Renderer.UseCameraSwitcher = True
lCameraSwitcher = FBCameraSwitcher()
lCurCamera = lCameraSwitcher.CurrentCamera
print lCurCamera.Name
lCameraSwitcher.CurrentCamera = lCamera2
lCurCameraIndex = lCameraSwitcher.CurrentCameraIndex
print lCurCameraIndex
lCameraSwitcher.CurrentCameraIndex = 3
lCameraIndexProp = lCameraSwitcher.PropertyList.Find("Camera Index")
lCameraIndexPropAnimationNode = lCameraIndexProp.GetAnimationNode()
lCameraIndexPropAnimationNode.KeyAdd(FBTime(0,0,0), 1)
lCameraIndexPropAnimationNode.KeyAdd(FBTime(0,0,1), 2)
lCameraIndexPropAnimationNode.KeyAdd(FBTime(0,0,2), 3)
lCameraIndexPropAnimationNode.KeyAdd(FBTime(0,0,3), 4)
lCameraSwitcher.UseEvaluateSwitch()
lPlayer = FBPlayerControl()
lPlayer.GotoStart()
lPlayer.Play()