5. Writing custom binding

It is possible to write your custom binding for your own SOFA c++ components. For that you need to follow the example provided in bindings/BindingExample. In this example a custom c++ SOFA object named CustomObject is binding to python and exposes some properties and methods.

See here a video tutorial on How to create python bindings with pybind11 and SofaPython3!