I'm working on an import script and I am getting stuck on doing armatures properly.
So far I have been creating edit bones and I have it mostly looking correct, but while the directions that the bones are pointing in are correct, their roll rotations are wrong. And that is quite important.
Is there any examples of how to do this properly? Should I use pose mode instead? Would using pose mode screw up vertex weights when I get to that part?
Could someone show me a code snippet of how to properly set positions and rotations for bones for an import script?