AB4D Forum

Full Version: reset colors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Last question I promise,

Is their anyway of reapplying a models normal colors (i.e how it was imported). I have a some models and when parts are clicked i have written code to change that parts color. (in this case to blue) but i am having a nightmare finding a good way to reset the color back to its original.

many thanks

fred
Reader3ds does not provide a functionality to set the color (material) back to original material. You could reload the whole 3ds file, but this would take too long.

The easiest way is to use a simple Dictionary<object, Color> or Dictionary<object, Material> where you will store the original color / material before you change it.