Samples/MaterialAndTexture/TextureAnimation.py
14 from pyfbsdk
import FBSystem, FBModel, FBModelPlane, FBMaterial, FBTexture, FBLayeredTexture, FBVector3d, FBColor, FBMaterialTextureType, FBTextureBlendMode
24 lTexture1 =
FBTexture( os.path.abspath(os.path.join(
FBSystem().ApplicationPath,
"../system/material_background.tif" ) ) )
25 lTexture2 =
FBTexture( os.path.abspath(os.path.join(
FBSystem().ApplicationPath,
"../system/actor-picture.tif" )) )
30 lLayeredTexture.Layers.append(lTexture1)
32 lTexture2.BlendMode = FBTextureBlendMode.kFBTextureBlendTranslucent
34 lLayeredTexture.Layers.append(lTexture2)
37 lLayeredTexture.HardSelect()
41 lMaterial.SetTexture(lLayeredTexture, FBMaterialTextureType.kFBMaterialTextureDiffuse)
44 lPlane.Materials.append(lMaterial)