I have spent a few hours muddling with the code already. I was thinking that a good workflow might be to just list out all of the properties in a text file with their corresponding property from the AD material. So like
colorDiffuse,_Color
texmapDiffuse,_Color_Map
Then run down the text file using try catch() and grab the property values when they match. Would be far better than creating a function for every single type. I also noticed that with the AD materials, there are a lot of common properties between them. The confusing part is that sometimes the same category, "Concrete" for example, will have multiple interfaces depending on what type you choose. Also, the UI changes depending on what type of Concrete you want. Accounting for all of those changes per type might get...complicated. I think the thing to do here might be to get the basic properties like Color, Reflectivity, Opacity, Bump, Maps (if any) and refine from there. I will keep plugging away at it as I have already learned some useful stuff.