You might want to check out the cableGuy script at creative crash... https://www.creativecrash.com/maya/script/cableguy