This is a bonus video for a two-part exercise made for Blender Python beginners where we were working on a Python script that created a circle mesh from scratch.
We will go over the modulo operator and how it could be used to simplify some code.
Start Code
https://gist.github.com/CGArtPython/a4dff81d8c233601759dffd48917f296
Beginner Blender Python Exercise: Circle mesh from scratch (Part 1) https://www.youtube.com/watch?v=uOQ-CPcaqMo
Beginner Blender Python Exercise: Circle mesh from scratch (Part 2) https://www.youtube.com/watch?v=uOQ-CPcaqMo
Blender: How to set up Python console output on Linux
Blender: How to set up Python console output on macOS
00:00 – Intro
00:20 – Get code
00:56 – Problem summary
05:00 – Explaining the modulo
08:22 – Using the modulo
Outro Music
Geographer – Easy Shake
#blender #python #scripting