Overide material per XREF scene

We use override with/without exceptions quite regularly. It would be very useful to have more control over which XREF scenes have things overriden - for instance, we seperate our buildings and our buildings glass into seperate XREFs:

Building01.max
Building01_glass.max
Building02.max
Building02_glass.max
etc

It would be nice to tell all Buildingxx.max XREFs to have a pure black material applied to them, but not affect all the Buildingxx_glass.max XREFs

This is completely possible with maxscript but depending on how you wish to render the files the setup can vary. I can explain how this can be done if you have some knowledge of maxscript.

some good info here http://www.chaosgroup.com/forums/vbulletin/showthread.php?t=42454&highlight=xrefs

Some good stuff in that thread. Its worth checking out.

Yeah I started that thread for the exact reason. The finished script is nice, I must admit I’ve not used it for a little while, and I did find a small issue with animations, but its a very cool tool, and you should def try it out.

Mark

Thanks all - I will check out the suggested thread. I must ashamedly admit, my knowledge of Maxscript is none-existant. I rely on forums, Scriptspot and helpful individuals to get me by.

If you need help with this tricky, let me know. That script works, but isn’t quite finished, still beta. I must admit it’s a bit painful to do, but it does work :wink:

Tricky? In the other thread it seems like it’s being used in production by some without any hiccups. I still do want to improve it, and now that vlado gave us access to the Override Material ExcludeList, it will be very easy to change to code to accomodate! This is a much better solution as the script won’t need to iterate over every object and actually change properties. I’ll update the code if there’s any problems, but it works just fine (It also works with Netrendering) and xrefs!

Sorry Colin - I wasn’t ignoring your kind offer. Things are rather manic here and we’re juggling quite a few jobs. I’ll look through it when I get a chance.

Sounds good Colin, Im also damn busy, but will test more when possible.

Thanks