Add a heightfield node with heightfield generate, then input your terrain into the heightfield generate node's "shader" input. Remember to have a 'compute terrain' in between or you wont get correctly. Click generate and save your heightfield as .ter file and then import to worldmachine.. use sizes like 1024, 2048, 4096 as the heightfield size or else you might have problems..
edit: added a screenie