1

I've got to believe someone has written a SCRIPT-FU scriptor or simple plug-in that reads a file of (x,y) points (in GIMP's coordinate system) and plots small circles of specified color and diameter at those locations in the current layer (or similar functionality that I could adapt), but a quick search doesn't turn anything up. Can someone please help me?

  • why do you have the photoshop scripting tag? – joojaa Dec 4 '18 at 4:48
  • tell me how to turn it off, and I will! – vparunak Dec 5 '18 at 22:45
  • You can press edit and remove it, but i have fixed this. – joojaa Dec 6 '18 at 8:19
2

Using python scripting you just need:

gimp.set_foreground(*color)
pdb.gimp_context_set_brush_size(dotSize)
pdb.gimp_paintbrush_default(layer,2,[x,y])

where [x,y] is a two-elements vector with the coordinates of the center of the dot.

Since this is Python, you have all the Python power to read your coordinates form whatever file you have: flat text, csv, xls, ods, xml, yaml...

  • Then accept the answer :) (not begging for kharma, but answers without upvotes/acceptation keep being popped up by bots...) – xenoid Dec 4 '18 at 15:44
  • I'm a total newbie...I looked for a link to click to do just that. Where is it? – vparunak Dec 5 '18 at 22:43
  • Ah...just found it! – vparunak Dec 5 '18 at 22:44
  • Actually you only "upvoted". To "accept" there is a grey "V" check mark under the votes count (that you can only see on questions you asked) – xenoid Dec 5 '18 at 22:48
  • Got it! Thanks! (and thank you for the original answer--I'm rolling along very nicely now.) – vparunak Dec 6 '18 at 3:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.