1
2
3
4
5
6
7
8
9
10
11
12import os
13
14from pyfbsdk import FBSystem, FBModel, FBModelPlane, FBMaterial, FBTexture, FBLayeredTexture, FBVector3d, FBColor, FBMaterialTextureType, FBTextureBlendMode
15
16
18lPlane.Rotation = FBVector3d(90, 0, 0)
19lPlane.Translation = FBVector3d(0, 40, 0)
20lPlane.Show = True
21lPlane.Visible = True
22
23
24lTexture1 =
FBTexture( os.path.abspath(os.path.join(
FBSystem().ApplicationPath,
"../system/material_background.tif" ) ) )
25lTexture2 =
FBTexture( os.path.abspath(os.path.join(
FBSystem().ApplicationPath,
"../system/actor-picture.tif" )) )
26
27
29
30lLayeredTexture.Layers.append(lTexture1)
31
32lTexture2.BlendMode = FBTextureBlendMode.kFBTextureBlendTranslucent
33lTexture2.Alpha = 0.6
34lLayeredTexture.Layers.append(lTexture2)
35
36
37lLayeredTexture.HardSelect()
38
39
41lMaterial.SetTexture(lLayeredTexture, FBMaterialTextureType.kFBMaterialTextureDiffuse)
42
43
44lPlane.Materials.append(lMaterial)
45
LayeredTexture class.
Definition: pyfbsdk_generated.h:9869
Material class.
Definition: pyfbsdk_generated.h:10458
Plane model class.
Definition: pyfbsdk_generated.h:11944
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18771
See samples: HUDElements.py, MaterialAndTexture.py, TextureAnimation.py, VideoInput....
Definition: pyfbsdk_generated.h:19477