This tool could quickly connect from your max UI elements to dx material shader parameters. example: you can use 3ds max environment ambient color to control dx material ambient color. I showed this during GDC2007 which lots people interested and want get this script. here it is.
3/30 updated with auto wire and scan wires. check the demo2 video