FreeHand tool

Does anybody has a script or can write a script which work like the 3ds max free hand tool or paint tool.It work like this : You select a mesh and then with the paint tool you can paint the selected mesh all over another mesh.With this you can paint grass, stone, hair etc…
[img]http://img211.imageshack.us/img211/7827/14xy1.jpg