Dynamic change of a component Data field #2677
-
Hi everyone, This topic has been discussed briefly on the SOFA gitter, but it can be interesting to keep track of it in here. I'm trying to change a Data field of a component (in the Cosserat plugin), dynamically during the simulation, with a Python controller, and I need to update internal variables of the component whenever this happens.
where the first parameters
It's seems that the callbacks follow a 'lazy update' mechanism, meaning that the lambda function will be called only if one of the output Data is used (e.g. with a
The I haven't yet succeeded in doing what I wanted with the Python controller, but the issue could come from the rest of the code, and not from my use of the update mechanism. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
sounds correct to me @Camille-K @Camille-K keep us posted! |
Beta Was this translation helpful? Give feedback.
sounds correct to me @Camille-K
@damienmarchal agreed?
@Camille-K keep us posted!