Texture Changer Script?

Is there a script that can easely change an object’s texture? Like to change a char’s clothes or something.

Why would you need a script for this? Just change it manually. Unless you want to have an instant change during animation? I guess you could make two sets of clothes and set layer IPOs for each set, having one set in the rendered layer and then switching to the other set some time later. Unless you mean something else…

It woud be nice if you wanted to do a couple of render passes on an object. Say render a material with a ramp shader and then use that render to be a mask for stap 2 of the shader.

But that being said…as that’s something I’m thinking about doing…you can find a good start here: http://www.blender.org/modules/documentation/236PythonDoc/Texture-module.html

I want to change the texture during a game, not an animation.
Thx both of you.
That link will help i think :smiley:

you’ll have to replace the entire mesh

[use an edit object, mesh replace actuator]