Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError when using convert2bvh.py #429

Open
MasterOvO opened this issue Aug 4, 2024 · 0 comments
Open

ValueError when using convert2bvh.py #429

MasterOvO opened this issue Aug 4, 2024 · 0 comments

Comments

@MasterOvO
Copy link

I was trying to convert spml json file into bvh using
"blender" -b -t 12 -P scripts/postprocess/convert2bvh.py -- input --o output
and encounter ValueError: setting an array element with a sequence in
line 101 mat = np.asarray([[0, -r[2], r[1]], [r[2], 0, -r[0]], [-r[1], r[0], 0]])

Looks like changing it to mat = np.asarray([[0, -r[2][0], r[1][0]],[r[2][0], 0, -r[0][0]],[-r[1][0], r[0][0], 0]]) solve the problem
Numpy version 1.26.4
Hope that helps

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

No branches or pull requests

1 participant