there is my code, i can't understand why need to use "quad.setmaterial(0,mat)"?
Dim quad as xpquadobject
Scene.getobjectbyname("代碼圖檔", quad)
f Text >= "A" and Text <="Z" then
Text= Text & "氣象主播名"
Engine.getMaterialByName(Text, mat)
quad.setmaterial(0,mat)
quad.visible = true
else
quad.visible = fasle
end if