Will it Blend? Writing a Custom Constraint Solver for Blender with Cython
Offered By: PyCon US via YouTube
Course Description
Overview
Explore how to leverage Cython to create a custom geometric constraint solver for Blender, proving that Python can deliver both speed and accessibility. Learn about common Cython development pitfalls and how to overcome them while maintaining a Python-like package structure. Discover the process of integrating optimized Cython code into Blender add-ons, including interface creation and property handling. Gain insights into software applications in the built environment, physical and digital form-finding techniques, and the power of constraint solvers for 3D geometry. Follow along with a practical demonstration of the Pymaxion Blender add-on, showcasing the real-world application of these concepts.
Syllabus
Intro
Agenda
Software in the Built Environment What I Used It For • Building Analysis
Physical and Digital Formfinding
Constraint Solvers for 3d Geometry
Why Cython?
What is Cython? • Optimizing Static Compiler • Provides support for debugging in Python, Cython, and
Toy Constraint Problem Constraints • Anchors (supports) - 10,21 Forces (loads) - 11
Package Structure and Modules with Cython
Compiling Cython
Before you release the GIL...
Releasing the GIL!
Evaluating Cython performance - py-spy
What is Blender?
Adding your Cython package to Blender
Blender Add-on Interface Creation Typical files
Blender Properties
Pymaxion - Blender Demo!
Taught by
PyCon US
Related Courses
Multithreaded Python without the GILEuroPython Conference via YouTube Extending Cython with GIL-Free Types
EuroPython Conference via YouTube Is It Me, or the GIL
EuroPython Conference via YouTube Addressing Multithreading and Multiprocessing in Transparent and Pythonic Ways
EuroPython Conference via YouTube Running Python Code in Parallel and Asynchronously
EuroPython Conference via YouTube