It's time for the moment you've been waiting for!
Thanks to the p3dxml feature I was able to develop this nifty add-on. It allows you to edit SHaR's skeletons fully inside blender.
Spoiler: Here's how it works:
- Download and install the .py file (download link below)
- Export the skeleton chunk from any .p3d file
- File > Import > Skeleton chunk (.p3dxml)
- Now you can then edit the armature to rig your own characters/cars/moving-structures etc. (tip: if you have a weight-painted mesh, set armature as it's parent and pose the armature, that way you can see how well your rig is in real-time)
- When you're done, you just export that armature back into .p3dxml
- Replace the skeleton chunk using latest Lucas' Pure3D Editor (4.3+)
- And that's it!
- Due to how some SHaR rigs are made, the "X mirroring" feature doesn't work well in few cases. One such case is shoulder bones and their children. There is an easy fix for this though. When you're done rigging, do the following:
- Assuming you edited LEFT-HAND bones and all arm bones are pointing upwards
- select all RIGHT-HAND BONES (Shoulder_R, Elbow_R, etc...)
- Pick transform orientation: Normal
- Pick transform pivot point: Individual origins
- Now press "S+Y+-1"
- Now all RIGHT-HAND BONES should be pointing downwards
- If you edited RIGHT-HAND bones, just do the same thing but with the left side.
- feel free to use the demo.blend file as a guide
- While exporting rigs try to select only the armature you need. Warning messages will appear if the first selected item is not an armature
Download the add-on (+Demo .blend project from the screenshot)
Spoiler: TODO list
- automatically create IK bones
add support for custom bones
Please report all bugs either to me on discord(link in bio) or in this comment sectiIKon.