In a game i am making im going to make a kind of landscape transformation, i want to keep it simple so im only going to change the coloring.
I have set up two materials:
I have figured out how to find these materials in my mesh via python but i could not figure out how to set them, am i using outdated code? other then the whole GameLogic thing i know thats old.
here is my script
sky = GameLogic.getCurrentScene().objects[“Gate Clowds”]
skypoly = sky.meshes.getPolygon(0)
skymat = skypoly.getMaterial()
sky.meshes.materials = “MALightClouds”
When i did this it told me that the kx_MeshProxy objects are not writable. Can this not be done in the game engine?