Configure Mouse Manager Settings in SofaPython3 #5542
Replies: 1 comment 4 replies
-
|
Hi @jo-ntan15, You can check out this example scene: In SofaPython3, if you wanted to add this component to your root node, you would be writing:
Sidenote: if you are using the FreeMotionAnimationLoop in your simulation, I would suggest you use the ConstraintAttachButtonSetting instead. This adds a Bilateral Lagrangian constraint to perform the mouse interactions, for which you need not set a stiffness parameter. Docs for the two components I mentioned: Hope this answers your question |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I would like to manipulate some parameters of mouse interactions within the code, instead of using the SOFA gui. More specifically, I'm trying to change the mouse stiffness parameter of "attach an object to the mouse using a spring force field". Is that doable?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions