The Terrain Tools operator contains tools for accessing terrain data.
Print grid height info: will print terrain grid height information (min/max/range/Unreal Engine z-scale) to the MAXScript Listener, for all terrain grids in the event.
Snap selected objects to terrain: will move selected objects to the nearest point (along the Z-axis) on the nearest terrain grid in the event.