# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Topic: FBArrowButton, FBCamera, FBModelMarker # from pyfbsdk import FBCamera, FBModelMarker, FBVector3d, FBModelShadingMode # We want to create a camera with a marker as an interest. lCamera = FBCamera('aFBCamera') lInterest = FBModelMarker('aFBModelMarker') # Set the camera translation, and set the interest lCamera.Translation = FBVector3d( -25, 25, 10 ) lCamera.Interest = lInterest # We have to make the new objects visible for them to be added to the scene. lCamera.Visible = True lCamera.Show = True lInterest.Visible = True # Cleanup everything. del( lCamera, lInterest, FBCamera, FBModelMarker, FBVector3d, FBModelShadingMode )