Change an Object's Material to another Material with Python [Pic Attached]

by SmokeWeedEveryday   Last Updated July 12, 2019 06:15 AM

I have an object named "Paper_obj"

enter image description here

enter image description here

After entering the Material tab, there are tons of materials within, "White Transmission", "Steel Mag", etc.

My main purpose is to change the "PaperTopYellow" to "PaperTopRed" by clicking on the drop down list. Can it be done with Python? enter image description here

enter image description here

Since there are many other objects in the blend file, the hardest part for me is to first target that "Paper_obj" first and then change the "PaperTopYellow" to "PaperTopRed" within.

Thank you!



Related Questions


Updated August 18, 2018 04:15 AM

Updated June 11, 2016 08:06 AM

Updated August 20, 2018 23:15 PM

Updated January 10, 2019 16:15 PM

Updated September 12, 2016 08:06 AM