Noob, Blender 2.49b, very little knowledge/experience with Python & scripts;
I’ve imported some .stl files of some objects, and I want to allow mouseover in BGE to change their color as mouse goes over them and also present some info text about each object, and then color go back to original after mouse leaves the object and text disappears.
Any help would be appreciated!
 I did try this script I found, but it only changed the object color after I exited BGE, not while in the game:
from random import random
from Blender import *
scn = Blender.Scene.GetCurrent()
ob = scn.objects.active
m = ob.getData(mesh=True)
if(len(m.materials) < 1):
following two lines are indented in script, but don’t show up indented here?
mat = Material.New('newMat') m.materials += [mat]
m.materials.rgbCol = [random(), random(), random()]
 is it better to post this kind of (scripting?) question here, or in Coding-Python, or in both?