jgerstmayr / EXUDYN

Multibody Dynamics Simulation: Rigid and flexible multibody systems
https://www.youtube.com/channel/UCsQD2bIPBXB_4J23WtqKkVw/playlists
Other
166 stars 23 forks source link

graphicsDataUserFunction in SolutionViewer #51

Closed peter-manzl closed 1 year ago

peter-manzl commented 1 year ago

python 3.10.9 exudyn Version 1.6.176.dev1

I am using the graphicsDataUserFunction to draw the spatial trajectory a point from sensor data. It works while simulating and also in the solutionViewer. But when activating the recordAnimation the graphicsDataUserFunction is no longer called.

Here you can see the blue Trajectory correctly displayed. workingExample

When pressing "record animation" it vanishes. The same thing happens when the "Stop" button is pressed. notWorkingExample

When adding a print statement into the graphicsDataUserFunction I found that the function is not called at all.

jgerstmayr commented 1 year ago

This is, unfortunately, a bug. Is fixed in version 1.6.182. Recording also does not work with the single-threaded renderer, which will be fixed in this version as well.