Milo van Pelt - Tools Programmer
Tools Programmer
Menger Sponge
Created in Year 3 as a self-study project at Breda University of Applied Sciences.
I learned to work with Python and using Tkinter to create UI, which was used to call the API of Blender3D to create a menger sponge.
Tools programmer
1 Dev
1 week
Python 3.12
Blender3D
Details:
Created a Menger Sponge (fractal made of cubes)
Using Tkinter (Python GUI) to create custom UI
Create menger sponge with the click of a button in Blender3D project
Menger Sponge Creation
This project began as an exploration of Python GUI development, using Tkinter, with the goal of building a tool and expanding my Python knowlegde . At the same time, I wanted to get more familiar with the Blender environment and explore how I could connect and create from a custom GUI. To challenge myself further, I created a menger sponge within Blender, which was created from the GUI.
Skills Developed
Python Development: Used Python scripting for Blender intergration and GUI creation.
Blender3d API Intergration: Learned how to use the api of Blender3D to create cubes and menger sponge, from visual studio code.
Tkinter: Learned how to use Tkinter to create UI with Python.
Python executable (Pyinstaller): Learned how to create a python executable, so anyone can open and use the tool, using Pyinstaller.
Key Features
Custom GUI with Tkinter
The GUI created, using TKinter lets users create a cube and Menger Sponge with the click of a button. The GUI includes an option to slect the blender.exe file and the project path.
Menger Sponge Creation
The Menger Sponge, a fractal made of cubes, is generated within Blender, by using Blender's API.
Standalone Tool
To make the tool accesible, the tool comes with a .exe. This allows for starting up the application without needing to set anything up.
Python Tkinter UI
Executable for tool (main)
Selecting Blender3D executable and Project file
Creation of GUI window (code)
Menger sponges created in Blender. Left cube shows first iteration , the right one second iteration.
(each iteration increases "depth" and generates more smaller cubes)
Code for creating a cube, using Blender API
Code for creating Menger Sponge. This uses the cube class:
Selecting Blender3D executable