from pyfbsdk import *
FBApplication().FileNew()
lHud = FBHUD("MyHUD 1")
lHud.Visibility = True
FBSystem().Scene.ConnectSrc(lHud)
FBSystem().Scene.Cameras[0].ConnectSrc(lHud)
lTimeline = lHud.CreateElement(FBHUD.eTimeline, "HUD Timeline")
lTimeline.HeadActiveColor = FBColorAndAlpha(0.3, 0.5, 0.8, 1.0)
lTimeline.HeadIdleColor = FBColorAndAlpha(0.15, 0.25, 0.4, 0.3)
lTimeline.HeadDuration = FBTime(0,0,0,30)
lTimeline.CutActiveColor = FBColorAndAlpha(1, 0.2, 0.5, 1.0)
lTimeline.CutIdleColor = FBColorAndAlpha(0.5, 0.1, 0.25, 0.3)
lTimeline.TailActiveColor = FBColorAndAlpha(0.7, 1.0, 0.7, 1.0)
lTimeline.TailIdleColor = FBColorAndAlpha(0.35, 0.5, 0.35, 0.3)
lTimeline.TailDuration = FBTime(0,0,1,0)
gPlayer = FBPlayerControl()
gPlayer.LoopActive = True
gPlayer.Play()