Object name to Material name

Hi, I need help creating a script. I want the script to create a Standard Legacy Scanline Material for the objects selected in the scene. The material names should match the object names, including objects that have multiple material IDs/names.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	for o in selection do o.material = (StandardMaterial name:o.name)
)
polbolotsoro's picture

Omg. thank you so much

Thank you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.