Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By RobA

Thread: Gimp Script: Label Points

  1. #1
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Default Gimp Script: Label Points

    I saw a reference to a Gimp script that will label the points of a path and draw circles around/behind them: http://registry.gimp.org/node/25086

    The suggestion was that this could be used to label maps quite easily...but after playing with it for a while I found a few limitation. After taking a look at the code, I figured I'd rewrite it from scratch to give more flexibility.

    This script will label the points in a path numerically, alphabetically or using custom numbering; it lets you specify the font and label size and optionally will outline or circle the labels.

    Unzip and save the script RMA_label_points.scm to your gimp user script folder. This script shows up in the path menu (right click on a path) as "Label Path Points..."

    It will use your current foreground colour for the labels and the current background colour for the outline or circle.

    Options are:
    • Method (Numeric - 1,2,3, etc.; Alphabet - A, B, C, etc; Custom)
    • Custom (comma separated list of labels)
    • Font (picker)
    • Text Size
    • Outline (None, Hard, Soft, Circle)
    • Outline Size.


    The custom method could be the handiest, as it would let you st up labels like 1,2,3,4a,4b,5 and so on. If you have more points than either the custom list or the alphabetic list it will just wrap around. (i.e a custom list of just X will print an X at every point, a custom list of X,Y will label them X,Y,X,Y,X,Y, etc.)

    Here is an example showing numeric labels in with the soft outline mode:

    Gimp Script: Label Points-labeled.jpg

    And attached is the script.

    -Rob A>
    Attached Files Attached Files

  2. #2
    Guild Artisan Jacktannery's Avatar
    Join Date
    Jun 2011
    Location
    Dublin, Ireland
    Posts
    857

    Default

    This is AMAZING! I have wanted something like this for absolutely ages - thanks you so much RobA.

  3. #3
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Default

    Quote Originally Posted by Jacktannery View Post
    This is AMAZING! I have wanted something like this for absolutely ages - thanks you so much RobA.
    You are quite welcome! (ooh looks like I need to update my sig with a link to this script! Thanks for the reminder!)

    -Rob A>

  4. #4
    Guild Applicant
    Join Date
    Aug 2009
    Posts
    1

    Default

    I can't seem to be able to find the "Label Path Points..." option on the path context menu in GIMP 2.8. Am I missing something obvious?

    Thanks for all the scripts you've made, Rob--although I've never posted here before, I've made ample use of your work in prepping for my home games.

    EDIT: Ack! Finally found it. I kept right clicking on the path itself, expecting to see the menu option there. Had no idea there was such a thing as the Layers window...
    Last edited by dd.stevenson; 12-08-2012 at 06:51 PM.

  5. #5
    RFG
      RFG is offline
    Guild Applicant
    Join Date
    Aug 2014
    Posts
    1

    Default

    This is exactly what I needed! Thanks a million!
    Last edited by RFG; 08-22-2014 at 12:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •