# 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: FBSystem.ComputerName # from pyfbsdk import FBSystem, FBMessageBox, FBCamera # Create global objects needed for our work... lSystem = FBSystem() # Show the machine name... FBMessageBox( "Machine Name", "This machine is named '%s'" % lSystem.ComputerName, "OK" ) # And infos on one camera... FBMessageBox( "Last Camera", "The last camera in the list is named '%s'\nand uses resolution mode '%s'" % ( lSystem.Scene.Cameras[-1].Name, lSystem.Scene.Cameras[-1].ResolutionMode ), "OK" ) # Cleanup # Cleanup things from pyfbsdk del( FBSystem, FBMessageBox ) # Cleanup local variables del( lSystem )