It is currently 18 Jan 2018, 01:39

GIMP Python Fu ScriptsGuides Save and Load Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 1/1
Posts: 2058
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,937.46 GLP
Bank: 42,250.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1092
x 236
Contact:
Canada

Guides Save and Load Script for GIMP

Post#1 by tim » 09 Oct 2016, 14:35


This script here allows you to Save and Load sets of guides.
Unlike the GAT tools which only allows loading of guides in ABSOLUTE (in pixels).
This script can load guides with RELATIVE_MODE (in percentage) (for example if you saved a guide at 10% it'll load up on your image at 10%) which I assume will be used more often then absolute mode.
It saves all guides sets into a file under your [user]/.gimp-2.8/guides/guides.txt file
Here's the script
:download:
Guides_Save_Load.zip #
(2.77 KiB) Downloaded 77 times
Menu location of script:
guides_save_load_01_menu_location.png
guides_save_load_01_menu_location.png # (38.23 KiB) Viewed 972 times (Watermarked | Thumbnail)
Save Option (just a name):
guides_save_load_02_save_option.png
guides_save_load_02_save_option.png # (11.22 KiB) Viewed 972 times (Watermarked | Thumbnail)
Load Options (Guide's name, Remove existing guides or not, and Load Method):
guides_save_load_02_load_options.png
guides_save_load_02_load_options.png # (16.12 KiB) Viewed 972 times (Watermarked | Thumbnail)
the guidex.txt file will look something like this format

Code: Select all

Guide:10% border|6000.0,4000.0|400.0,3600.0|600.0,5400.0
Guide:Cross|6000.0,4000.0|2000.0|3000.0
Guide:My Guides 1|640.0,400.0|200.0,360.0,40.0|320.0,576.0,64.0
Guide:My Guides 2|480,300|40,200|64,320
Where the first part before the pipe (|) is just hardcoded to say Guide: then the guide sets' name that you want to save it as.
The second part is Width and Height of image that the guides were saved on.
Next is a list of horizontal guides (y-positions in pixels).
Next is a list of vertical guides (x-positions in pixels).
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
Post Reply

Last 20 Members Who Visited This Topic

User avatar tim (1)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: Issabella
2: Pat625
3: Conbagui
4: Issabella
5: gnerd
6: Pat625
7: Conbagui

Who is online

Users browsing this forum: No registered users and 2 guests