I have two materials assigned to an object. I checked both materials in Material> Options> Object Color. I want to change one of the materials without affecting the other material in real time. It's similar to this, but this time it's more than one material.
import bge
cont = bge.logic.getCurrentController()
obj = cont.owner
# Material no. 1
obj.color = [ 0.0, 0.0, 0.0, 1.0]
# Material no. 2
obj.color = [ 255.0, 255.0, 255.0, 1.0]
My goal here exactly is that I have 2 color palettes alongside with 2 materials assigned for a 1 object.