Ok updated to include both Mapping Randomizer and Triplanar. Let me know if you encounter bugs/issues.
Script attached to this post.
Thanks James, very much appreciated, it's working perfectly, such a huge time saver 🙏🏻
I had 3ds Max crashing while I was using it though, I remember I was using Corona IR at the same time, not sure if your script is to be blamed or not, 3ds Max is not the most stable software anyhow.
I did some test renders, on a very basic scene of few boxes with a simple wood material on them, just to check if there was any difference when rendering:
1) no Randomizer nor Triplanar map
2) Randomizer map only
3) Triplanar map only
4) Randomizer + Triplanar
Here are the results, respectively:
1) 1mn20s
2) 2mn02s
3) 1mn51s
4) 2mn07s
Meaning an increase of 59% in render time from 1) to 4) which is very strange as the material doesn't really change: only the mapping changes in the end. So there shouldn't be such a difference. Unless Corona is having hard times calculating the resulting shader before actually rendering it?
Interesting to note that:
_ cpu usage is 100% for all 4 renders (we finally got rid of the annoying slow rendering time when using Triplanar map, good)
_ when I move the boxes far away from the camera, the render time drops to 25s, which makes sense.
Happy to hear what Corona dev team think about that.
Thanks again for the script James!