import os
from pyfbsdk import FBModel, FBModelPlane, FBMaterial, FBTexture, FBLayeredTexture, FBVector3d, FBColor, FBMaterialTextureType, FBTextureBlendMode
lPlane = FBModelPlane("My Plane")
lPlane.Rotation = FBVector3d(90, 0, 0)
lPlane.Translation = FBVector3d(0, 40, 0)
lPlane.Show = True
lPlane.Visible = True
lTexture1 = FBTexture(os.path.realpath("../../../../system/material_background.tif"))
lTexture2 = FBTexture(os.path.realpath("../../../../system/characterctrl/character-picture.tif"))
lLayeredTexture = FBLayeredTexture("layeredTexture")
lLayeredTexture.Layers.append(lTexture1)
lTexture2.BlendMode = FBTextureBlendMode.kFBTextureBlendTranslucent
lTexture2.Alpha = 0.6
lLayeredTexture.Layers.append(lTexture2)
lLayeredTexture.HardSelect()
lMaterial = FBMaterial("My Material")
lMaterial.SetTexture(lLayeredTexture, FBMaterialTextureType.kFBMaterialTextureDiffuse)
lPlane.Materials.append(lMaterial)