Python Reference Guide
 
Loading...
Searching...
No Matches
UI\FBCamera.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: FBArrowButton, FBCamera, FBModelMarker
7#
8
9from pyfbsdk import FBCamera, FBModelMarker, FBVector3d, FBModelShadingMode
10
11# We want to create a camera with a marker as an interest.
12lCamera = FBCamera('aFBCamera')
13lInterest = FBModelMarker('aFBModelMarker')
14
15# Set the camera translation, and set the interest
16lCamera.Translation = FBVector3d( -25, 25, 10 )
17lCamera.Interest = lInterest
18
19# We have to make the new objects visible for them to be added to the scene.
20lCamera.Visible = True
21lCamera.Show = True
22lInterest.Visible = True
23
24# Cleanup everything.
25del( lCamera, lInterest, FBCamera, FBModelMarker, FBVector3d, FBModelShadingMode )
Creates custom cameras and manages system cameras.
Definition: pyfbsdk_generated.h:2530
Model marker class.
Definition: pyfbsdk_generated.h:11380