Joints gets rotate when applying IK Handle

Hey friends, I have created a skeleton and it gets rotated when I set an IkHandle to it, I don’t know what the problem is may be this could be because of joint orientation but I am totally confused how the joints should be orientated.


Can anybody tell me if joints are oriented properly or not.

Looks like they are not. Hip , knee and ankle should have parallel Y axes.
Sean Hewitt has a good tutorial on orient local joint axes

Also: it looks like your leg is straight before applying IK. If the limb is completely extended, Maya can’t figure out the natural plane of the IK chain. Try to make sure there is at least a half-degree of rotation (or of jointOrient) in each bone in the chain

Hey thanks Mambo4, it was a good tutorial and cleared all of my doubts regarding orienting joints. And thanks Theodox also for you reply, i’ve recreated the setup and oriented it properly and it worked for me.