Beginner Blender Python Tutorial: Assigning materials to faces of a mesh (Part 1)
In this video, we will go over how to assign materials to the faces of a mesh using a Python script. We will also go over the basics of working with BMesh (a special object used for interacting with mesh data in Blender Python).
Final Code: https://gist.github.com/CGArtPython/25c37feb8484776306b5a5a98648d4ca
00:00 – Intro
00:47 – Go over the steps
04:35 – Add an ico sphere
09:43 – Toggling Edit Mode with Python
11:00 – Deselect all the faces of a mesh
12:00 – Create a BMesh object to work with the mesh data
14:07 – Iterate through the faces of a mesh
15:40 – Create a material and assign it to a face
23:54 – Write the script
31:24 – Generate the random color
34:41 – Next steps
35:35 – Outro
Intro Music
Fiery Trails – Silent Partner
Outro Music
Geographer – Easy Shake
#blender #python #scripting
Beginner Blender Python Tutorial: Assigning materials to faces of a mesh (Part 1)
- Price type: Free