Task: create and assign materials for selected objects where material name = object name.
I.e. we select 3 objects, “box”, “cool_box”, “awesome_model” and after script object “box” will have material named “box”, “awesome_model” will have material named “awesome_model” and so on.
Maybe some one have an examples? Im not familiar with python at all.
Currently i realize how to rename already created and assigned material to object name, but still dont get how to create and assign material automatically on for loop.