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
The auto_rig function requires a skeleton object and a mesh object.
The only way for it to return any data is by giving it a pyn.Mesh(file). feeding a mesh's data directly to pyn.Mesh(), even if they're the same as the file's, doesn't work. (workaround is to create a temporary obj, could be worse, not a big deal).
2nd bigger issue: it doesn't work with custom skeleton.
given correct data (very similar to a template) or a file, pyn.auto_rig() returns no data.
I'm really surprised that anyone uses it! Of course I could help you if you share your files required to reproduce the issue such as mesh file, skeleton file and minimal sample code.
I'm sure that we could find workaround or resolve the problem with bugfix.
Hi,
It's the only model that lets me embed a given skeleton in a given mesh. As far as my research goes, all the other models generate a skeleton. If you know of any other mean to do that please share.
Here's the skeleton file I generate from maya's data (if you don't know, think blender 3D): skeleton1.txt
and the mesh file (added txt extension since github won't accept obj): temp.obj.txt
you can try those files with the code snippet in the original message.
skeleton = pyn.skeletons.SkeletonBase() #creates pynocchio skeleton object
for joint_data in ordered_skeleton_data: #adds joints to the pynocchio skeleton object
skeleton._make_joint(name = joint_data['name'],
position = pyn.Vector3(joint_data['position'][0],joint_data['position'][1], joint_data['position'][2]),
previous = joint_data['parent'])
skeleton._make_compressed()
print(skeleton.vertices)
...this prints the same thing as well (not exact data but structure)
The only difference is that HumanSkeleton is "contained" within -1 and 1.
So after scaling my skeleton to be within -1 and 1, I get:
So it worked sort of...
The output data is disgusting but it did something. Any idea on how to have a better embedding?
The auto_rig function requires a skeleton object and a mesh object.
The only way for it to return any data is by giving it a pyn.Mesh(file). feeding a mesh's data directly to pyn.Mesh(), even if they're the same as the file's, doesn't work. (workaround is to create a temporary obj, could be worse, not a big deal).
2nd bigger issue: it doesn't work with custom skeleton.
given correct data (very similar to a template) or a file, pyn.auto_rig() returns no data.
Do you know how to make it work?
I'm making an auto rig for maya and having 80% of the joints placement done would be great.
The text was updated successfully, but these errors were encountered: