You can access comments from the MAT1 object to get material name, but you’d have to parse it yourself.
comment = model.material[2].comment
name = comment.split(“:”)[1].strip()
There is a function to lookup ids by material id, but I’m out of town at the moment.
So I know we can request for material names and it will return MAT1 or MAT11 or others depending on the material type, but is there a function that will return the actual material name that is assigned, i.e. Aluminum_6061? The attached photo, I have boxed in red what I am trying to return. ideally, trying to print the element ID along with the actual material name, vs the MAT 1 or MAT 11 etc. Let me know if there needs to be more clarification.