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

Wrong bone offsets #9

Open
wolfg259 opened this issue Aug 13, 2024 · 2 comments
Open

Wrong bone offsets #9

wolfg259 opened this issue Aug 13, 2024 · 2 comments
Assignees

Comments

@wolfg259
Copy link

When importing a .bvh file, the offsets of some bones (specifically underarms, hands, feet, toes and head) seem set to zero. The bones are present in the armature structure in the Maya outliner section and are selectable, but selecting them only highlights a single joint at the position of their respective parent bones. The .bvh displays expected behaviour when imported into Blender directly.
Screenshot:
image

Maya version: 2025.2

The .bvh file contains:
HIERARCHY
ROOT Hips
{
OFFSET -42.200000 91.615000 -40.070000
CHANNELS 6 Xposition Yposition Zposition Zrotation Yrotation Xrotation
JOINT Thigh_L
{
OFFSET 0.103500 1.857800 10.548500
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Shin_L
{
OFFSET 43.500000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Foot_L
{
OFFSET 42.372000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Toe_L
{
OFFSET 17.300000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
End Site
{
OFFSET 0.000000 0.000000 0.000000
}
}
}
}
}
JOINT Thigh_R
{
OFFSET 0.103500 1.857800 -10.548500
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Shin_R
{
OFFSET 43.500000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Foot_R
{
OFFSET 42.372000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Toe_R
{
OFFSET 17.300000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
End Site
{
OFFSET 0.000000 0.000000 0.000000
}
}
}
}
}
JOINT Spine
{
OFFSET 6.900000 -2.600000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Spine1
{
OFFSET 12.588000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Spine2
{
OFFSET 12.343000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Neck
{
OFFSET 25.833000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Head
{
OFFSET 11.766600 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
End Site
{
OFFSET 0.000000 0.000000 0.000000
}
}
}
JOINT Shoulder_L
{
OFFSET 19.746000 -1.480000 6.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT UpperArm_L
{
OFFSET 11.284000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Forearm_L
{
OFFSET 33.000000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Hand_L
{
OFFSET 25.200000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
End Site
{
OFFSET 0.000000 0.000000 0.000000
}
}
}
}
}
JOINT Shoulder_R
{
OFFSET 19.745000 -1.480000 -6.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Shoulder_R
{
OFFSET 11.284000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Shoulder_R
{
OFFSET 33.000000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT Hand_R
{
OFFSET 25.200000 0.000000 0.000000
CHANNELS 3 Zrotation Yrotation Xrotation
End Site
{
OFFSET 0.000000 0.000000 0.000000
}
}
}
}
}
}
}
}
}
MOTION
Frames: 1
Frame Time: 0.033333
0.0 81.94722342313453 0.0 83.64857482910156 -5.1407976150512695 179.99996948242188 141.83921813964844 9.451811790466309 172.7410125732422 -55.331336975097656 1.976538896560669 2.3647689819335938 94.19088745117188 -0.6372877359390259 7.98997163772583 21.454553604125977 0.003083630697801709 -1.825733193072665e-06 155.40151977539062 5.173086166381836 -170.7864227294922 -121.24588775634766 -3.89929461479187 7.3554205894470215 77.41047668457031 -3.743041515350342 4.6010355949401855 21.454557418823242 -0.003110337071120739 -1.7463120457250625e-05 7.307146072387695 -0.8062565922737122 -0.951666533946991 4.61519193649292 -1.5743032693862915 -1.9346380233764648 4.297166347503662 -1.5858123302459717 -1.9250980615615845 -5.3348469734191895 8.240971565246582 -7.254695892333984 -24.54618263244629 -3.6556551456451416 -3.5858535766601562 -162.68746948242188 -82.760498046875 -19.08236312866211 23.661270141601562 57.43457794189453 36.06333541870117 -103.62854766845703 1.2911152839660645 2.820697784423828 -11.9232816696167 -11.710646629333496 18.88094139099121 177.31985473632812 76.61246490478516 -1.3111459016799927 19.860258102416992 -58.52260971069336 -32.24992752075195 -78.39004516601562 5.93436861038208 -2.251673460006714 -11.021965026855469 17.59025001525879 -10.154060363769531

@jhoolmans jhoolmans self-assigned this Aug 13, 2024
@jhoolmans
Copy link
Owner

I'll have a look, thank you!

@wolfg259
Copy link
Author

Thank you for the script!

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

2 participants