It is currently Fri Mar 29, 2024 9:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 3:27 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
I am not entirely sure how useful this is but I thought i'd do it for fun.

Release 1. (available under <Image>/Image/Guides/Select Guides Surrounding Active Path Points)
Attachment:
guides_select_from_path_points.zip [1.95 KiB]
Downloaded 188 times


Instructions.
Have an image filled with guides
Image

Now draw a path (could be just points without out lines by holding down the Shift key while clicking away in middle of rectangles that you want to select)
Image

Now run script.
Image

And you'll see the rectangles surrounding your active path's points will be selected (shown in lighter rectangles).
Image


When you draw the path you don't have to use Shift clicks to draw just points, it can be a regular path (but only the points will be used). For example you can draw a path that looks like this.
Image
And after you run script, You'll get a selection that looks like this
Image

Let me know what y'all think :hehe

_________________
TinT


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: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 3:33 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
I made it so that it also works on a Selection bounding box.
For example if you have a selection like below
Image

After running script, you'll get something like this.
Image

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 4:00 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
You're amazing my friend. :bigthup
I have no idea what I would do with this but I admire your persistence.

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


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 4:50 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
That's why i said I am not entirely how useful it is :hehe

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 4:56 pm  (#5) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Odin, does Tran's brain ever sleep?


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 4:57 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
Thanks Tin.

Very practical to create geometric patterns.
The first idea for the use of:


Attachments:
Chessboard.png
Chessboard.png [ 4.44 KiB | Viewed 4268 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 6:03 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Pat625 wrote:
Odin, does Tran's brain ever sleep?

Probably not, the brain never sleeps it just gets disconnected.
The older I get, the more often that happens to me even when I'm awake.
The older I get, the more often that happens to me even when I'm awake. ;)

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


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 6:39 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4039
It's too late to try and put the genie back in the bottle, so we'll just take the random scripts and figure out how to make them useful. Since you made a point of using points, my brain kicked into high gear asking, why just guides? What if you could also use points selected on various layers, areas within x amount of pixels to create selections of various kinds (squares, rectangles, ellipses, or circles) and add the ability to number those selections? I tend to create images for tutorials that add steps (in numerical value) on screenshots. Step 1, click here, Step 2 do this and that and the other, Step 3.... this sort of script would be ideal for that.

EDIT: There is already a script that does this and it is found here:

http://registry.gimp.org/node/25086?des ... node/25086

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Fri Sep 23, 2016 9:28 pm  (#9) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
mahvin wrote:
It's too late to try and put the genie back in the bottle, so we'll just take the random scripts and figure out how to make them useful. Since you made a point of using points, my brain kicked into high gear asking, why just guides? What if you could also use points selected on various layers, areas within x amount of pixels to create selections of various kinds (squares, rectangles, ellipses, or circles) and add the ability to number those selections? I tend to create images for tutorials that add steps (in numerical value) on screenshots. Step 1, click here, Step 2 do this and that and the other, Step 3.... this sort of script would be ideal for that.

EDIT: There is already a script that does this and it is found here:

http://registry.gimp.org/node/25086?des ... node/25086

[ Image ]


I was in the process of posting a script for this when i saw your EDIT.
I tried the script you mentioned and well mine is a bit different giving a little more control since it creates separate layers for fill and numbers so you can apply effects if you really wanted to .... hopefully you try mine out too and make your own decision on which one you like more
it's here --> http://gimpchat.com/viewtopic.php?f=9&t=14607

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 12:12 am  (#10) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4039
It makes the selection circles and then stops dead in its tracks. Never mind, it was user error. I had messed up the path by altering it with another script before running your script. Leaving the path alone allowed the plugin to work properly. Just one small issue: the numbers don't center in the selections. Having them as layers allows me to make adjustments, although I would prefer not having to do that.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 12:39 am  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
Numbers don't center in selections?
I put them dead center in circles.
From my trials they're all centered, can you show me an example image of how it's not centered?

EDIT: I think I know what you mean by they're not centered.
It's the text layer (the number) when it's created it's got spaces around the number and the surrounding space isn't even all the time so that's why.
I should be able to make it dead center with a few steps of manipulation.
Will Release #2 soon.

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 1:08 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
Hi Mahvin.

The next version mark-number-circles.scm - RMA_label_points.scm RobA.
https://www.cartographersguild.com/showthread.php?t=17514
The best not only to tutorials. :)

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.

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 1:28 am  (#13) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
Wow that one looks super advanced. :hehe

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 4:13 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 2:06 pm  (#15) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
Rod wrote:
[ Image ]

:hehe You enjoy clicking paths way too much

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Sat Sep 24, 2016 4:38 pm  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
downloads/views rate = 11/227 dls/views = 0.048
not all that exciting

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Mon Sep 26, 2016 11:38 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Going deep, Hilbert Curve Coloring, (be sure to click on the images).
At GC: Subject: Hilbert maze (mainly for Lylejk )

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


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Mon Sep 26, 2016 3:54 pm  (#18) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
Hilbert looks way above my level of thinking...

_________________
TinT


Top
 Post subject: Re: Select guides surrounding active path points (py. script)
PostPosted: Mon Sep 26, 2016 4:33 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
Lindenmayer systems:
http://weitz.de/lindenmayer/

For Gimp L-system_v12.scm waiting for repair :gaah


Attachments:
L-System Hilbert.png
L-System Hilbert.png [ 13.28 KiB | Viewed 1262 times ]

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Script-fu select outline of image inside png

1

No new posts Attachment(s) Points of Interest Work Flow

1

No new posts Attachment(s) | Solved ] Move points on gradients

2

No new posts Convert a selection into an array of coordinates/points

2

No new posts Attachment(s) active preview window and tools

2



* Login  



Powered by phpBB3 © phpBB Group