Count materials of each loaded .mat file
This is probably very easy but what I want is to get an array of the number of materials inside a .mat file array.
What I have so far is:
--array of mat files mat = #("F:\\3dwannab Maps_Corona.mat", "F:\\3dwannab Set_Corona.mat", "F:\Basic_Corona_Set.mat") --loop setup to get the count for i in 1 to mat.count do ( ) --for getting materials only count (I need this to count for each mat). I'm not sure how to do this.. At the moment this works for the last material in that above array. for i in mat do matFile = loadTempMaterialLibrary i materialsOnly = for i in matFile where superclassof i == material collect i materialsOnly.count