Python Reference Guide
 
Loading...
Searching...
No Matches
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
12from pyfbsdk import FBCamera, FBVector3d
13
14# Once created, the camera needs to be made visible
15lCamera = FBCamera("Camera created by script")
16lCamera.Show = True
17lCamera.SetVector( FBVector3d( 50, 50, 50 ) )
18
19# Cleanup
20del( lCamera, FBCamera, FBVector3d)
Creates custom cameras and manages system cameras.
Definition: pyfbsdk_generated.h:2530