Skip to content
You can run custom Python scripts on your models now! 🎉 Find out more here!
Running Python scripts on your models in the web UI

Running Python scripts on your models in the web UI

May 10, 2026·Aleksandr Prokudin
Aleksandr Prokudin

Running custom Python scripts on your models in the web interface for Ondsel Lens was originally planned as an Enterprise-tier feature. A few years later, it’s finally implemented and available to everybody.

Here is what the UI looks like:

Running a custom Python script

You can all store all code snippets on your account for later use. They are available on the newly added Macros page:

Running a custom Python script

From the technical (and security) standpoint, this new feature is about executing Python scripts in FC-Worker inside a restricted bubblewrap sandbox. Implementing it involved patching both the backend, the frontend, and FC-Worker.

All work was done by Amritpal Singh thanks to the Ondsel Onward fund donated anonymously and managed by the FreeCAD Project Association.