Ah yea, thanks for sharing the issue. The obj exporter transforms names in a certain way, probably changing that model name which caused issues later down the road…
I’ll look into adding clearer errors/allowing recursive attachments the next time I touch this code.
He says that setting is disabled and he’s always used the export button. The normal R15 block rig straight from the animation editor plugin in Studio works fine for him, but it’s not the best because it isn’t completely accurate with my (slightly) custom rig.
For Mixamo users: I made some small modifications to the original script so that animations imported from Mixamo look cleaner.
When the rig is rebuilt:
All body parts (sans the lower torso) have their location constrained.
For knees and elbows, only rotation along the x-axis is allowed.
For wrists, all rotations are disabled.
for ankles, only rotations on the x- and z- axis are allowed.
The functionality of is_transformable is split into is_translatable and is_rotatable. This is useful for jumping animations, where you want to disable changes to the location of the of the hip (Lower Torso) while still allowing its rotation.
Before:
After:
Some caveats:
For animations that involve a tool, you may want to disable the rotation constraint on the right hand.
If foot planting is unsatisfactory, you may want to disable the rotation constraint on both ankles.
AAAAAAAAAAAAAH!!! Job well done mate. Im actually going to start using this. That splefunking thing going on with jutting out/twisted body parts was ticking me off. Now no longer!!!11!!11!!
If your imported animation appears shaky or jittery, there’s also a way to smooth it:
Import the animation you want into your rig.
Open both the dope sheet panel and the graph editor panel.
On the left-hand side of the dope sheet panel, select all the bones. You may have to expand some arrows in order to show all bones. This should cause some lines and dots in the graph editor to appear.
On the graph editor, select all the nodes by pressing A. All the nodes should be highlighted.
Open the toolbox by pressing space, then type in Smooth Keys. Only one option should appear. Click this option.
Do step four several times until the shakiness disappears. Overdoing it will cause the animation to appear sluggish, so don’t overdo it.
Thanks for sharing that!
I’ve added a link to this in the OP. I’ll probably merge those changes into the main module at some point and add an option for it. Definitely makes blocky R15 rig animations look much better.
It’s attached to this post as an fbx. I can probably give the blend file if anyone wants it. All I did was assign each imported mesh to its own vertex group, join all the meshes into a single mesh, and parent it under the armature with the armature modifier. I also offsetted the root bone a bit because re-importing the exported fbx into a rig was causing some issues. It may just be a fluke.
Now that I think about it, joining all the meshes probably wasn’t necessary. I just copied the structure of the characters I downloaded from mixamo.