Xpression script

Does anyone know why this little script does not work. Any obvios mistakes?

Dim TextObj as xpTextObject
Dim material as xpMaterial

Self.GetObjectByName(“Text1”, TextObj) (getting the text object)

Engine.GetMaterialByName("farve_a", material)    (getting the new colour)

TextObj.SetMaterial(0, material) (setting the new colour on the textobject)

I’m trying to change the face colour om some text.

You should probably post this in the Graphics community. That one covers XPression. You can find it here:
https://livinglive.community/communities/community-home?CommunityKey=91812bfd-9393-4a3f-8a74-7f8035df130e

You’re more likely to get a response there. This one covers more DashBoard, PowerPlay and LCS.