FBSystem - The System Class
 
 
 

The System Class

The FBSystem class exposes many system properties, including the computer name (FBSystem.ComputerName), the system time (FBSystem.SystemTime), the process memory (FBSystem.ProcessMemory), the MotionBuilder installation directory (FBSystem.ApplicationPath), and the MotionBuilder version information (FBSystem.Version) to name but a few.

It is implemented as a singleton, and also contains references to important objects such as the MotionBuilder scene (FBScene), the current take (FBTake), and the viewport (FBRenderer). The following Python code snippet illustrates how to access the MotionBuilder scene and the current take from the FBSystem object.

from pyfbsdk import *

scene = FBSystem().Scene
currentTake = FBSystem().CurrentTake

The FBSystem is also responsible for:

NoteFile I/O is encapsulated by the FBApplication class, which can be used to import and export scene data. For more information, consult the FBApplication - File I/O and Application Utilities topic.