Notifications
Clear all

[Closed] Assigning IDs based on texture?

Hi guys.

Got a question about ID’s and maps.
I need a script, plugin that would create a Multi-Sub material with according materials based on an object that has those materials set from different maps without correctly set ID’s.

I imagine it would go through and do following (for a chair with wooden and metallic parts): Get selection of polys that have a wood material then assign ID to 1, then do the same for other parts (it would go through and look for which polys have which materials) and then create a Multi Sub material and put that wood material in the according place (in this case ID 1).

Yeah, I understand, why not just do this in the first place? Well some guys do it around here ( I work at arch vis studio), some are a bit lazy to do it and this would be great way to help organise materials.
This was especially needed when we set up big scene for rendering and needed to create sort of xrefs for vray. It’s called VrayProxy. It basically converts the model to a vraymesh, which has no polys (no RAM consumption) and loads the model only when you render it. But it doesn’t “embed” the texture data, so you have to assign ID’s before the convertion and after its done, just assign the new Multi-Sub material.

I tryed to look this up on some script sites, but I didn’t find anything like that. So sorry if this has been discussed.

Anyway, thank you all in advance and for your time to read this rumble-mumble.

1 Reply

I solved the problem. :bounce:

Blur has made great script pack that has script that does exactly what i need.

http://www.neilblevins.com/blurscripts/blurscripts.htm
This is the one i was looking for: CollapseSubObjectMaterial