The Shape method, a novel approach to obtain the functional form of the γ-ray strength function (γSF) in the absence of neutron resonance spacing data, is introduced. When used in connection with the Oslo method the slope of the Nuclear Level Density (NLD) is obtained simultaneously. The foundation of the Shape method lies in the primary γ-ray transitions which preserve information on the functional form of the γSF. The Shape method has been applied to 56 Fe, 92 Zr, 164 Dy, and 240 Pu, which are representative cases for the variety of situations encountered in typical NLD and γSF studies. The comparisons of results from the Shape method to those from the Oslo method demonstrate that the functional form of the γSF is retained regardless of nuclear structure details or J π values of the states fed by the primary transitions.