Orienting JointsThis tutorial will focus on re-orienting joints and zeroing out bone rotations.
This is necessary for your IK handles and Constraints to work properly.
1. If there's a skin use skin>detach skin
2.delete all by type: constraints / ik handles
3. unparent the root joint to the world
4. click file>optimize scene size
select the root joint then run this in the script editor (Window>general>script editor)
select -hi;
FreezeTransformations;
xform -ro 0 0 0;
xform -ro 0 0 0;
xform -ro 0 0 0;
xform -ro 0 0 0;
xform -ro 0 0 0;
xform -ro 0 0 0;
then run skeleton>orient joints (These are good general settings)

This will fix all your orients and zero your joints.