SofaPython3 with SofaUnity #273
azizsnd
started this conversation in
General topics regarding SofaUnity
Replies: 1 comment
|
The SofaPython3.dll shipped with my SofaUnity v25.12 package depends on python313.dll, while the SofaPython3.dll from my SOFA v25.12 installation depends on python312.dll. The Unity project does not contain a Python DLL. SofaPython3.dll is x64 in both cases. When I enable SofaPython3 in SofaContext, Unity reports -12: Sofa plugin loading failed (invalid loading) and may close immediately |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm using SofaUnity-URP v25.12 with Unity 6 (6000.0.51f1). XML scenes work fine but loading .py scenes crashes Unity. I installed Python 3.13 (matching the cp313 bindings shipped with the plugin), copied python313.dll into Native\x64, and fixed the sys.stdout flush issue. SofaPython3 initializes (I see 'Initializing with python version 3.13.12' in logs) but Unity closes after the SOFA_ROOT warning. Is there a documented setup procedure for SofaPython3 with SofaUnity on Windows?
All reactions