It is currently 07 Mar 2021, 09:43

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Guides To Path Python Fu Script

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger

Guides To Path Python Fu Script

Post#1 by tim » 01 Oct 2016, 15:03


Use this script to turn your guides into path with lines meeting at intersections (so if you wanted to, you can easily edit/remove lines of created path).
guides_to_path.zip #
Zipped .py file (unzip and put in your GIMP's plug-ins folder)
(1.76 KiB) Downloaded 211 times
Guides_To_Path_menu_location.png
Guides To Path menu location
Guides_To_Path_menu_location.png # (32.97 KiB) Viewed 2997 times (Thumbnail | Recognize | Sq Tile)
Guides_To_Path_sample_result.png
Guides To Path sample result (with lines meeting at intersections)
Guides_To_Path_sample_result.png # (9.65 KiB) Viewed 2997 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

Krikor
Forum Member

Post#2 by Krikor » 08 Nov 2020, 15:26


Hi Tim,
I don't know for sure what happened, but here's the story:

Today when opening Gimp on my laptop, a message appeared referring to the Guides_to_path.py file, saying that this file would be corrupted, that I run "??" (a win program that I didn't write down the name; something like cmkds or something).

I closed and restarted Gimp, but did not find Guides_to_path in the menu.
I searched via Help - Plug-in Browser, nothing found.

So I opened .py with Notepad ++, and the code looked more like it was from another plugin (Font_Slab-v0-12.py) than from Guides to path.py

The strange thing is that it has been at least 1 month since I downloaded this plugin (guides to path), and a lot more time that I downloaded FontSlab 12, and why only now has this problem I don't know.

Below I leave a copy of the guides_to_path (code changed, after the problem in the gimp restart).

Code: Select all

# GIMP pluginrc
# 
# This file can safely be removed and will be automatically regenerated by
# querying the installed plug-ins.

(protocol-version 26)
(file-version 5)

(plug-in-def "D:\\...\\Font_Slab-v0-12.py" 1570866310
    (proc-def "python_fu_Font_Slab_v0-12" 1
         "To manipulate fonts along a path in Gimp "
         "To manipulate fonts and custom fonts along a path in Gimp "
         "Skinnyhouse"
         "Open source (BSD 3-clause license)"
         "2019"
         "Font Slab v0.12..."
         1
        (menu-path "<Image>/Filters/Custom Font Tools")
        (icon icon-name -1 "")
         "*"
         27 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "drawable" "Input drawable")
        (proc-arg 4 "pf-font" "Font")
        (proc-arg 0 "pf-fontsize" "Font size:")
        (proc-arg 0 "pf-do-Best" "Match the text size to the length of the path:")
        (proc-arg 0 "pf-shade-text" "Shade FG to BG colour along text:")
        (proc-arg 4 "pf-current-gradient" "Gradient for text colours:")
        (proc-arg 0 "pf-gradient-text" "Colour text from\ncurrent gradient:")
        (proc-arg 4 "pf-xcffilename" ".xcf font file:")
        (proc-arg 0 "pf-usecustomfont" "Use custom font:")
        (proc-arg 0 "mode-option2" "New Mode to use with custom fonts:")
        (proc-arg 4 "pf-string" "Text:")
        (proc-arg 0 "pf-reversed-writing" "As Reversed Writing:")
        (proc-arg 0 "pf-repeat-text" "Repeat text along path:")
        (proc-arg 0 "pf-text-size-factor" "Text size step change:")
        (proc-arg 0 "pf-use-text-size-modifier" "Use text size modifiers:")
        (proc-arg 0 "pf-initial-text-size" "Initial text size:")
        (proc-arg 0 "pf-medial-text-size" "Target text size:")
        (proc-arg 0 "pf-final-text-size" "Final text size:")
        (proc-arg 3 "pf-position-of-target" "Target for change in text\nsize as percentage of path:")
        (proc-arg 0 "pf-space-alters-size" "Change size with spaces:")
        (proc-arg 0 "pf-kerning-factor" "Adjust spacing \nbetween characters:")
        (proc-arg 0 "pf-rotate-text" "Rotate letters:")
        (proc-arg 3 "pf-user-angle" "Angle of rotation:")
        (proc-arg 0 "pf-jitter-range" "Jitter range:")
        (proc-arg 0 "pf-retain-layers" "Retain layers:")))
(plug-in-def "D:\\...\\Custom_Font_Kerning_For_UpperCase_v003b.py" 1599812976
    (proc-def "python_fu_Custom_Font_Kerning_UpperCase_v003b" 1
         "Provides options for creating kerning paths for upper-case letters in custom fonts "
         "Provides options for creating kerning paths for upper-case letters in custom fonts "
         "Skinnyhouse"
         "Open source (BSD 3-clause license)"
         "2019"
         "Custom Font Kerning for Uppercase v003b..."
         1
        (menu-path "<Image>/Filters/Custom Font Tools/Kerning Tools")
        (icon icon-name -1 "")
         "RGBA"
         25 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "drawable" "Input drawable")
        (proc-arg 0 "kern-sans" "Create upper case kerning paths for custom font: ")
        (proc-arg 0 "kern-style" "Kerning style used: ")
        (proc-arg 0 "kern-current" "Apply kerning to: ")
        (proc-arg 0 "use-pix" "Make adjustments in pixels: ")
        (proc-arg 0 "spin-adjust-g1-caps" "Group 1 upper case adjustment (%): \n ie B D E F H I K L M N P R")
        (proc-arg 0 "spin-adjust-g2-caps" "Group 2 upper case adjustment (%): \n ie C G O Q")
        (proc-arg 0 "spin-adjust-A-cap" "Upper case A adjustment (%): ")
        (proc-arg 0 "spin-adjust-J-cap" "Upper case J adjustment (%): ")
        (proc-arg 0 "spin-adjust-S-cap" "Upper case S adjustment (%): ")
        (proc-arg 0 "spin-adjust-T-cap" "Upper case T adjustment (%): ")
        (proc-arg 0 "spin-adjust-U-cap" "Upper case U adjustment (%): ")
        (proc-arg 0 "spin-adjust-V-cap" "Upper case V adjustment (%): ")
        (proc-arg 0 "spin-adjust-W-cap" "Upper case W adjustment (%): ")
        
I already installed another copy of Guides_to_path.py, downloaded from post # 1 and everything is ok now. But the question is why did this problem happen out of nowhere ?!
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

skinnyhouse
Script Coder

Post#3 by skinnyhouse » 09 Nov 2020, 07:56


Strange one.
Afraid I can offer no explanation as to why FontSlab should apparently appear under another the name of another plug-in.

tim
GL Blogger

Post#4 by tim » 09 Nov 2020, 12:52


Wow that is a weird problem. I don't think I ever encountered anything like that so I wouldn't know why or how that happened.
aka Tin

         

RJKD
Tutorial Creator

Post#5 by RJKD » 10 Nov 2020, 17:12


Only just seen this script T, really helpful thanks a lot.


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 31 guests