We recently had a plugin developed which does what you’re asking for. Although the specs changed (forget the complicated graphic and buttons, we just automated it), here was my original post:
If you post in marketplace , the author can probably adapt it to your needs.