![]() |
|
reset colors - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Viewer3ds and Ab3d.Reader3ds (https://forum.ab4d.com/forumdisplay.php?fid=5) +--- Thread: reset colors (/showthread.php?tid=3924) |
reset colors - fred_2420 - 01-04-2015 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 RE: reset colors - abenedik - 01-05-2015 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. |