The problem I’m running into- In a scene with lots of object you want to bake you spend a lot of time setting up materials with 2 texture slots. One for the diffuse texture and the second for the full bake texture. The second texture slot has to be unchecked when you bake the full texture, then rechecked and the material set to shadeless to see the baked texture. This is massivly time consuming if you move the lights and want to reBake the entire scene.
I found an add-on that can set all selected objs to shaded or shadeless at once. There is also some simple code to do it. But what I’m hoping someone will help me out with is some simple code that can check or uncheck the texture slot of my choise on all selected objects.
Then the work flow for baking all selected objects in a scene would be:
- one click to set objs to shaded
-one click to set texture slot #2 to unchecked
-one click on Bake full render-
-click again to enable check on texture slot 2
-click to set to unshaded.
Can anybody help with this little script? Could be a huge time saver when baking lots of objects for a game. Thanks