Profile Picture

Getting Bone Coordinates with Python

Posted By edwardjaywang 5 Months Ago
You don't have permission to rate!
Author
Message
edwardjaywang
edwardjaywang
Posted 5 Months Ago
View Quick Profile
New Member

New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)New Member (90 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 3, Visits: 60
Hi,

I am looking to get the coordinates of individual bones in my avatar. My goal is to create a partial visualization of the Wireframe Render State. For my project, I am trying to get the wireframe of my avatar's face as they make various facial expressions.
 
I have been able to write a script to get all the Transform objects of the Bone Nodes(which I assume are the leaf nodes that have 0 children), by traversing the bone tree, starting from the avatar.GetSkeletonComponent.GetSkinBones() iterable object. However, once I get to the leaf nodes at the bottom of the bone hierarchy, I have not been able to find a way to get the X, Y, Z, coordinates and angles that I need to recreate the visual in another medium.

Any help is greatly appreciated. Thank you.
elMartino
elMartino
Posted 4 Months Ago
View Quick Profile
Junior Member

Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)Junior Member (186 reputation)

Group: Forum Members
Last Active: 3 days ago
Posts: 8, Visits: 639
Not entirely sure what exactly you want to do but most likely your facial expressions will also be controlled by morphs and not just bones. Anyhow, how do the bones help you to with the wire frame you want to see? If you want to blend in the wire frame partially I would render your scene twice, once with the wire frame and one time regular and then blend it in the post production with Adobe Premiere or a tool like it. You can just overlay both videos and make it transparent with masks.



Reading This Topic