#NEWLINE# def load_volume_prop_from_grad( grad_file_name , volume_prop , scalar_range = ( 0 , 255 ) ) : #NEWLINE# #INDENT# 'Load a ``*.grad`` file (*grad_file_name*) and set the given volume\n    property (*volume_prop*) given the *scalar_range*.\n    ' #NEWLINE# gt = GradientTable ( 300 ) #NEWLINE# gt . load ( grad_file_name ) #NEWLINE# gt . store_to_vtk_volume_prop ( volume_prop , scalar_range )