Collect Wirecolors into Diffuse Materials

1 vote

This is the script I've built to fix FBX imports from Navisworks & the mass duplicated materials. Optionally it will also split them out to layers based on object wirecolor.

Majority of the code for the main function comes from

I'm using it in my workflow to effectively 'collapse' duplicate materials when bringing in an FBX. It's the last step shown in my video here:

It goes through your selection, collects an array of the unique wirecolors, and then creates a material for each unique wirecolor and assigns it to those objects.

Video URL: 
collectbywirecolor.ms4.48 KB