BasicOperations/NewCamera.py

BasicOperations/NewCamera.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 # Script description:
7 # Create a new Camera in the select and sets its vector
8 #
9 # Topic: FBCamera
10 #
11 
12 from pyfbsdk import FBCamera, FBVector3d
13 
14 # Once created, the camera needs to be made visible
15 lCamera = FBCamera("Camera created by script")
16 lCamera.Show = True
17 lCamera.SetVector( FBVector3d( 50, 50, 50 ) )
18 
19 # Cleanup
20 del( lCamera, FBCamera, FBVector3d)