Beginner Blender Python Tutorial: Assigning materials to faces of a mesh (Part 2)

preview_player
Показать описание

In this video, we will improve the code we wrote in the first part of this series. We will make sure we don’t create too many materials and organize our code to make it easier to read.

Start Code:

Final Code:

Beginner Blender Python Tutorial: Assigning materials to faces of a mesh (Part 1)

00:00 - Intro
00:30 - Get the code
01:00 - Creating a fixed set of materials
07:54 - Creating a function for getting a random color
11:06 - Creating a function for generating materials
12:37 - Creating a function for adding an ico sphere
13:54 - Creating a function for assigning materials to the faces of an object
17:18 - Outro

Intro Music
Fiery Trails - Silent Partner

Outro Music
Geographer - Easy Shake

#blender #python #scripting
Рекомендации по теме
Комментарии
Автор

Very nice set of tutorials! Is there a simple way to convert this function to a Blender modifier (i.e. to apply it to a selected mesh within Blender UI)?

andreyzelenskiy
Автор

Great how you changed the subdivisions parameter in the thumbnail 🙂

somedude