The planning method of tool orientation in the five-axis NC machining is studied. The problem of the existing method is analyzed and a new method for generating the global smoothing tool orientation is proposed by introducing the key frame idea in the animation-making. According to the feature of the part, several key tool orientations are set without interference between the tool and the part. Then, these key tool orientations are inter- polated by the spline function. By mapping the surface parameter to the spline parameter, the spline function value is obtained and taken as the tool orientation when generating the CL file. The machining result shows that the proposed method realizes the global smoothing of the tool orientation and the continuity of the rotational speed and the rotational acceleration. It also avoids the shake of the machine tool and improves the machining quality.