Maybe someone can help me understand the following error:
values = {'material_ids': [(0,0,1),(0,0,2)]}
for mat in values.materials_ids:
print(mat)
I get the error AttributeError: 'dict' object has no attribute 'material_ids'
Maybe someone can help me understand the following error:
values = {'material_ids': [(0,0,1),(0,0,2)]}
for mat in values.materials_ids:
print(mat)
I get the error AttributeError: 'dict' object has no attribute 'material_ids'
It means exactly what it says it means. The dictionary "values" has a key called "materials_ids", but no attribute (variable) named materials_ids.
try this instead:
for mat in values["materials_ids"]: