Skip to content

Conversation

@melund
Copy link
Member

@melund melund commented Mar 29, 2022

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 melund marked this pull request as draft October 29, 2023 18:01
@melund melund changed the title WIP: Mocap marker check Mocap marker check Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants