curved line to curvature



i will enter the value so that straight line (actually it is curve object) is curved as per the amount.  someone script please