[solved] Texturing a model differently based on its ID?

I have cubes (simple 3D models) flying around the scene. Each cube has a name and an ID. I’d like to color/texture them based on their name/ID. Currently I have a cube.egg file and I can find the line where it specifies the texture.
I thought about changing the .egg file or the texture file on the fly each time I load a new cube, but it’s kinda a clumsy way of doing it, isn’t it? :frowning: (plus I ran into race conditions when I tried that)

Is there a Panda3D feature that allows you to achieve this? Thanks in advance for your help!

panda3d.org/manual/index.php … eplacement

Thank you… I was just reading that page… shame on me for not referring to the manual first.

Thanks! :stuck_out_tongue: