You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: