jackpedleham Posted January 28, 2015 Share Posted January 28, 2015 Hi, is there any way of stopping the ridiculous amount of materials in revit coming across to max? There are scores of identical materials coming through from architect models into our max scenes. Is anyone aware of a decent cleanup or 'merge similar materials' script or something? Its a very messy system. Link to comment Share on other sites More sharing options...
siddharthkolte Posted January 28, 2015 Share Posted January 28, 2015 (edited) I have made my own script for the same. It just picks it up as per the Autodesk material definitions that way everything that is Concrete gets one material that I have prepared. Also a good idea is to keep all the materials converted in an Array and when converting in the for loop check if material exists in Array, if it exists apply the same material if it doesn't then create it. mat = obj.material def = filterstring mat.definitionid "-" if (def[1] == "Concrete") then ( -- Create material here ) Edited January 28, 2015 by siddharthkolte Link to comment Share on other sites More sharing options...
jackpedleham Posted January 28, 2015 Author Share Posted January 28, 2015 I dont suppose this entire script is available online anywhere? Im not proficient enough in maxscript to construct it from that snippet haha. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now