from pyfbsdk import FBModel, FBModelPlane, FBGeometry, FBVertex, FBTime
lPlane = FBModelPlane('Deformable Plane')
lPlane.Visible = True
lPlane.Show = True
lGeometry = lPlane.Geometry
lGeometry.GeometryBegin()
lShape0Idx = lGeometry.ShapeAdd("Shape 0")
lGeometry.ShapeInit(lShape0Idx, 2, False)
lGeometry.ShapeSetDiffPoint(lShape0Idx, 0, 0, FBVertex(0.0, 100.0, 10.0, 0.0));
lGeometry.ShapeSetDiffPoint(lShape0Idx, 1, 2, FBVertex(0.0, 100.0, 10.0, 0.0));
lGeometry.GeometryEnd()
lPlane.SetupPropertiesForShapes()
lShapeProp = lPlane.PropertyList.Find("Shape 0")
lShapeProp.SetAnimated(True)
lAniNode = lShapeProp.GetAnimationNode()
lAniNode.KeyAdd(FBTime(0, 0, 0), 0.0)
lAniNode.KeyAdd(FBTime(0, 0, 4), 100.0)
lAniNode.KeyAdd(FBTime(0, 0, 8), 0.0)
del( lPlane, lGeometry, lShapeProp, lAniNode )
del( FBModelPlane, FBGeometry, FBVertex, FBTime )