It is currently Fri Jul 19, 2024 12:25 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Creating guide presets
PostPosted: Sun Nov 01, 2015 1:33 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
I find myself positioning guides the same on many pictures. This got a bit tiresome, and everything tiresome is a target for a script. So it started as a small personal script and then I made it a bit more fit for human consumption. In its present state, you create a small definition file like this:
Centered:centered:[.5]:[.5]
Margins @20px:margins20:20, -20 : 20,-20
Margins @50px:margins50:50,-50 :50,-70
Full Monty:fullmonty:[20,50,.5,-50,-20]:[20,50,.5,-50,-20]

And you end up with:
Attachment:
ofn-preset-guides-screenshot.png
ofn-preset-guides-screenshot.png [ 161.81 KiB | Viewed 3357 times ]

Plugin is in ofn-preset-guides.zip at the usual place. I'm inaugurating a new naming scheme and packaging, I hope you like it.

Enjoy.

_________________
Image


Last edited by ofnuts on Sun Nov 01, 2015 2:14 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 2:02 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Thanks Ofnuts that looks very useful indeed.
:bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 2:51 pm  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2444
Works fine here: Gimp 2.8.14 & Bodhi linux (netbook)

Only one comment, I use a folder ~/gimp-2.8/plugins-test (for the named obvious)
ofn-presets-guides.ini does need to be in the regular ~/gimp-2.8/plug-ins for ofn-preset-guides.py to read it.

Unzips with permissions set, still have to wade through the html ;)

_________________
Image


Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 3:14 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
rich2005 wrote:
Works fine here: Gimp 2.8.14 & Bodhi linux (netbook)

Only one comment, I use a folder ~/gimp-2.8/plugins-test (for the named obvious)
ofn-presets-guides.ini does need to be in the regular ~/gimp-2.8/plug-ins for ofn-preset-guides.py to read it.

Unzips with permissions set, still have to wade through the html ;)

Thanks for checking. Fixed it, now both config file and log should be in the same directory as the plugin file. This may cause problems if the script is installed system-wide, though.

_________________
Image


Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 5:14 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Thanks ofnuts, nice and handy. :bigthup

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 5:40 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
I wish I could use it. I'm confused on how to install it and I'm not that good at creating files for things to work. I'm using Windows 7. I'm using gimp 2.8.10


Last edited by mackenzieh on Sun Nov 01, 2015 10:57 pm, edited 1 time in total.

Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 10:34 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7755
Location: On the other side of this screen
MIght have a closer look at this when I get home. :idea:

_________________


Top
 Post subject: Re: Creating guide presets
PostPosted: Sun Nov 01, 2015 11:14 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
mackenzieh wrote:
I wish I could use it. I'm confused on how to install it and I'm not that good at creating files for things to work. I'm using Windows 7.
Extract files to user plug-ins folder.
~\.gimp-2.8\plug-ins
├── doc
│   └── ofn-preset-guides.html
├── ofn-preset-guides.ini
├── ofn-preset-guides.py
├── README
Image menu => Guides => Presets
User presets: ofn-preset-guides.ini
Instructions: ofn-preset-guides.html and README

If you need help customizing guide layouts ask away.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Creating guide presets
PostPosted: Mon Nov 02, 2015 1:15 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Odinbc wrote:
mackenzieh wrote:
I wish I could use it. I'm confused on how to install it and I'm not that good at creating files for things to work. I'm using Windows 7.
Extract files to user plug-ins folder.
~\.gimp-2.8\plug-ins
├── doc
│   └── ofn-preset-guides.html
├── ofn-preset-guides.ini
├── ofn-preset-guides.py
├── README
Image menu => Guides => Presets
User presets: ofn-preset-guides.ini
Instructions: ofn-preset-guides.html and README

If you need help customizing guide layouts ask away.


I figured it out. I got it to work.


Top
 Post subject: Re: Creating guide presets
PostPosted: Mon Nov 02, 2015 1:55 am  (#10) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Check 'ofn-preset-guides.py' properties to make sure it's executable.
In Gimp user folder you normally have only one plug-ins folder. Is there anything in the sub (additional), plug-ins folder?
Which folders are listed in Gimp Preferences => Folders => Plug-ins Folders?

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Creating guide presets
PostPosted: Mon Nov 02, 2015 3:06 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
Odinbc wrote:
Check 'ofn-preset-guides.py' properties to make sure it's executable.


The nice thing about the ZIP packaging is that it keeps the executable bit, so the .py should be executable without user action.

_________________
Image


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Creating text (layer?) presets/profile?

15

No new posts Creating a guide for GIMP

4

No new posts Attachment(s) Giveaway of the day — Abstract Curves 1.190 + Bonus Presets Pack

4

No new posts Attachment(s) Cross guide

3

No new posts Attachment(s) Gimp 2.99's master branch broke all color presets for my plugins

2



* Login  



Powered by phpBB3 © phpBB Group