Script to generate color information textboxes for selected paths
Hello Community!
I am looking for a way to generate textboxes on top of paths that contain fill color information:
- Hex (probably not possible?)
- CMYK values
- RGB values.
Ideally you would select paths on your artboard, run the script and text boxes would be generated as such:

This script comes close, but does it for swatches in the document. However, I need it for the fill color for paths already on the artboard:
http://fashionclassroom.com/blog/handy-illustrator-script-for-printing-out-color-chips
https://github.com/johnwun/js4ai/blob/master/renderSwatchLegend.jsx
Also here is some discussion that touches on the subject: https://webcache.googleusercontent.com/search?q=cache:fLUn9JnVfDkJ:https://forums.adobe.com/thread/623432+&cd=8&hl=en&ct=clnk&gl=us
Any help would be greatly appreciated!
Best regards,
Martin


