Hi guys,
Any help would be greatly appreciated. Currently I have to do a really repetitive process at work for hundreds of models and I was wondering if any of you guys had a max script to reduce the process time.
My process involves:
Increasing the self illumination to 100% then pressing the' display texture in viewport' button for every individual material within a multi/sub object material.
If anyone can help please post!
Thanks
![:) :)](https://polycount.com/plugins/emojiextender/emoji/twitter/smile.png)
Replies
Then go to View menu very top, to the left,and choose Activate all maps to display all maps in one go.
Now it doesn't turn on self illum to 100%, it's just a viewport "style" si if you need to export your model at 100% self illum for some obscure reasons, you're out of luck for this one.
Scriptspot.com might help in that case.
I'm baking over 500 models which have been generated by another program. The models are simple boxes of different dimensions and ratios. Each model has a multisub material with 6 materials which need changing to 100% self illumination for baking. I also need to view the materials in the viewport so I can check they are mapped correctly. Once this is done the model is then baked.
I have to bake it manually because the automatic packing doesn't work very well.
I've managed to get a script working which displays all the textures in the viewport and I'm trying to adapt it so that it changes the illumination to 100%. Here is the script so far:
The code breaks when trying to set the illumination to 100% in a multi/sub material but works for a standard material. If you take out the self illumination lines the display all in viewport works with both a standard and a multi/sub material.
Thank you so much for you help,
I have managed to achive what i wanted to achive with the help of your code.
So the final script is:
This will increase the self illumination to 100% and 'display texture in viewport' for a multi/sub object matierial.
Thnak so much this will save me alot of time :thumbup: