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
Intro to Python for Brand New ProgrammersPyCon US via YouTube Comprehending Comprehensions
PyCon US via YouTube Data Analysis with SQLite and Python
PyCon US via YouTube Build a Production Ready GraphQL API Using Python
PyCon US via YouTube Web Development With A Python-backed Frontend - Featuring HTMX and Tailwind
PyCon US via YouTube