Welcome to the PC_BB repository! This project is part of an internship with the City of Amsterdam, with a primary goal of modelling light illumination in a 3D model of Amsterdam!
- Download Blender: Visit Blender's official website and download Blender 4.0.
- Set Blender as a PATH variable:
- Navigate to the Blender Foundation folder, typically located in "Program Files" or your chosen installation directory.
- Find the
blender.exe
executable, usually found at a path similar toC://...//Blender Foundation\Blender 4.0
. - Add this path to your system's PATH environment variable for easy access.
- Download Collada Cube:
- Visit 3D Amsterdam and download a Collada cube.
- Move the downloaded cube into the
dataset/dae
folder in your project directory.
- Integrate Pandas with Blender:
- Launch Blender and navigate to the Scripting menu.
- Run the following script in the Python Console:
import sys print(sys.executable)
- Open a command prompt or terminal.
- Use the Blender Python executable path obtained from the previous step to install Pandas:
"C:\path\to\blender\python.exe" -m ensurepip "C:\path\to\blender\python.exe" -m pip install pandas "C:\path\to\blender\python.exe" -m pip install openpyxl
- Execute Processing Script:
- Now you can run the
blender_functions/processing_blender.py
script. - Open a command prompt and run :
blender --background --python blender_functions/processing_blender.py
- Ensure all dependencies and paths are correctly set for a smooth execution.
- Now you can run the
Special thanks to the City of Amsterdam for their support and collaboration in this internship project.