1
2
3
4
5
6
7
8
9
10
11
12
13import os
14from pyfbsdk import FBHUD, FBScene, FBApplication, FBSystem, FBHUDFlashElement, FBHUDTextElement, FBHUDTextureElement, FBHUDRectElement, FBTexture, FBHUDElementHAlignment
15
17
18lHud =
FBHUD(
"MyHUD 1")
19lHud.Visibility = True
21FBSystem().Scene.Cameras[0].ConnectSrc(lHud)
22
24lHud.ConnectSrc(lRect);
25
26
27
28
29lRect.ScaleUniformly = False
30lRect.Width = 100
31
32
34lHud.ConnectSrc(lText);
35
36
37
38
39lText.Height = 34
40lText.Y = 50
41lText.X = 60
42
43
44lTextureFile = os.path.join(
FBSystem().ConfigPath,
'Scripts/Samples/HUD/hud_texture.tif')
45lTextureFile = os.path.normpath(lTextureFile)
46
48lText.Texture.append(lTexture1)
49
50
51
52lFlashFile = os.path.join(
FBSystem().ConfigPath,
'Scripts/Samples/HUD/hud_flash_v10.swf')
53lFlashFile = os.path.normpath(lFlashFile)
54
56lHud.ConnectSrc(lFlash);
57
58lFlash.FilePath = lFlashFile;
59
60lFlash.Height = 50
61lFlash.Y = 20
62lFlash.Align = FBHUDElementHAlignment.kFBHUDRight;
63
64lRecordLight = lHud.CreateElement(FBHUD.eRecordLight, "The record light")
65
FBApplication is used mainly to manage files.
Definition: pyfbsdk_generated.h:801
Heads Up display.
Definition: pyfbsdk_generated.h:9250
Heads Up display.
Definition: pyfbsdk_generated.h:9143
Heads Up display.
Definition: pyfbsdk_generated.h:9275
Heads Up display.
Definition: pyfbsdk_generated.h:9323
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18837
See samples: HUDElements.py, MaterialAndTexture.py, TextureAnimation.py, VideoInput....
Definition: pyfbsdk_generated.h:19545