Creating objects
 
 
 

This snippet shows how to create, show, select, and delete a cube.

from pyfbsdk import *
# create a cube
myCube = FBModelCube("cube")
# display and select the cube
myCube.Show = True
myCube.Select = True
# delete the cube
myCube.FBDelete()

In the UI you can duplicate objects by right clicking in the navigator. This functionality is available to Python via clone(), which is inherited from FBModel, FBCharacter, FBConstraint, FBMaterial, FBTexture, and FBShader.

from pyfbsdk import *
myCube = FBModelCube("cube")
myClonedCube = myCube.Clone()

See also: CopyClone.py