ammr icon indicating copy to clipboard operation
ammr copied to clipboard

Mocap marker check

Open melund opened this issue 2 years ago • 0 comments

This is prof-of-concept on how to use a python hook in a MoCap model analyse a c3d file and print the result of the analysis directly in the AnyBody output window.

To use the example:

  1. Open the file: Application/MocapExamples/Plug-in-gait_Simple/LowerExtremity.main.any

  2. Then change the #path ANYBODY_PATH_PYTHONHOME variable to point to a local python environment with ezc3d installed (e.g. conda install -c conda-forge ez3d"

    This step will not be necessary in 7.4 as this will come with ezc3d in the builtin python distribution.

  3. Load the model

The check is done in the file: Tools/AnyMocap/c3d_marker_check.py

It is currently hard to debug python when running through a hook. I suggest running the python file directly when testing.

melund avatar Mar 29 '22 20:03 melund