A motion design method for humanoid robots based on the interpolation of keyframes is proposed, in which the keyframes are defined as sets of kinematic constraints. Since the number of constraints is not necessarily persistent during a motion, the resultant trajectory often because discontinuous. An auto-binding technique of constraints with a variable weighting resolves this problem.