Script (addon?) for the Image/UV Editor

Hi!

I need a script (addon?), which will…

  1. calculate “dots_per_unit” (dpu) of the current UV unwrap of an object
  2. scale selected unwrapped islands to match some “dpu”, inputed by user
    Under “unit” I assume the size of an object in the 3d editor.
    So if I will know, than 1024 pixels om my texture must be equal to 10 blender units, i could set this in the UV editor ad automatically scale it.

I know that MODO has the same free user script (my colleague uses it) and hope that it is possible to do in blender.

Also I do not even imagine the cost of such a work, so I hope you will tell me.

PS It will be great this addon to be opensource or free.