FBModel
 
 
 

In the MotionBuilder UI, a model can be any object in a scene, created using geometry. Models can represent simple objects like cubes, or complex objects like characters.In the MotionBuilder SDK, FBModel is a base class which is not used much directly, but is the parent of important classes such as FBCamera, FBLight, and FBModelMarker.

It implements a number of widely-implemented functions and attributes

The following Python snippet shows how to create, show, scale, rotate, and delete a cube.

from pyfbsdk import *
myCube = FBModelCube("cube")
myCube.Show = True
myCube.Scaling = FBVector3d(40, 40, 20)
myCube.Rotation = FBVector3d(25, 16, 37)
myCube.FBDelete()

There is a few ways to get a handle on existing models in a scene:

See also: ShapeCreation.py