Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Guides to Path (scheme script, now python script more advanced).

Sun Sep 18, 2016 8:36 pm

This script is spawned from Rod's thread/request

Rel 2. works on selection bounding box/rectangle. (USE .py instead of .scm).
guides_to_path.scm
(5.51 KiB) Downloaded 582 times


REMOVE .scm above,
Use the .py below it's more advanced (registered under same location)
Release 1.
guides_to_path.zip
(1.76 KiB) Downloaded 821 times


.py features composing sections so that you can easily edit the path.
(as requested by mahvin)
(also defaulting the path to visible requested by Obinbc).
Image

Will be available under /Image/Guides/Guides to path
Image

If there is no selection all guides will turn into path.
If there is a selection, guides within the selection bounding (box/rectangle) will turn into path.

Image

Re: Guides to Path (scheme script).

Sun Sep 18, 2016 9:02 pm

Just a sample of usage.
Image

1. Created guides to represent the first row (blue).
2. Rectangle select the first row (using Snap to Guides for easy selecting).
3. ran "Guides to path" to create path that represents first row.

4. Modified guides to represent the second row (red).
5. Rectangle select the second row (using Snap to Guides for easy selecting).
6. ran "Guides to path" to create path that represents 2nd row.

7. stroked path created in step 3. with blue.
8. stroked path created in step 6. with red.

Re: Guides to Path (scheme script).

Sun Sep 18, 2016 9:23 pm

Great job, Tin! Works like a charm for me.

Re: Guides to Path (scheme script).

Sun Sep 18, 2016 9:40 pm

Sweet script!
Thanks T.
:jumpclap

Re: Guides to Path (scheme script).

Sun Sep 18, 2016 9:54 pm

mahvin & Wallace: :hi5
There isn't a smilies with 3 heads hi5ing :yes

Re: Guides to Path (scheme script).

Sun Sep 18, 2016 11:07 pm

trandoductin wrote:This script is spawned from Rod's thread/request
How about making the path(s) visible by default? A user without the Path dialog showing or open might not realize the script had run successfully.

BTW, nice job on the script. :bigthup

Re: Guides to Path (scheme script).

Mon Sep 19, 2016 3:01 am

This is a very useful script. :tyspin
According to me the most practical of all utility published this year.
In conjunction with this "New Guides from Selection: adds a lot of opportunities when working with paths.
This script should enter as canon in the installer GIMP
This is my favorite for the Golden Wilber GimpChat. :bump

Re: Guides to Path (scheme script).

Mon Sep 19, 2016 5:01 am

Indeed a useful script, paths from odd spaced guides.

There are as well, from ofnuts
http://sourceforge.net/projects/gimp-pa ... s/scripts/

A plugin for a shaped grid, diamonds, hexagons, etc. path-shaped-grid-0.0.py
ofn-0.jpg
ofn-0.jpg (68.47 KiB) Viewed 12401 times

A plugin for a grid bounded by a selection path-grid-0.1.py
http://sourceforge.net/projects/gimp-pa ... s/scripts/

Re: Guides to Path (scheme script).

Mon Sep 19, 2016 5:58 am

trandoductin wrote:Just a sample of usage.
[ Image ]

1. Created guides to represent the first row (blue).
2. Rectangle select the first row (using Snap to Guides for easy selecting).
3. ran "Guides to path" to create path that represents first row.

4. Modified guides to represent the second row (red).
5. Rectangle select the second row (using Snap to Guides for easy selecting).
6. ran "Guides to path" to create path that represents 2nd row.

7. stroked path created in step 3. with blue.
8. stroked path created in step 6. with red.


Sorry i haven't posted sooner Tran. Been to bed and then work. Just got home and saw you created this new filter. Thank you sir! :)

Image

Exactly what i was looking for! And so quick. Thanks again Tran. :guitrock

Re: Guides to Path (scheme script).

Mon Sep 19, 2016 9:19 am

Tin's guide script is awesome, no denying that. However, I just ran Ofnut's Paths grid feature and I noticed that every cell had intersecting points allowing me to cut paths between cells to convert a row of cells into one cell, etc. So, how could this be obtained (making intersecting points) using the guides script, or is this possible? Tin's script makes shorter work by allowing you to select your area to create the paths. Can the paths be modified to create intersecting nodes?

Re: Guides to Path (scheme script).

Mon Sep 19, 2016 2:21 pm

I'll see what i can do.
To create a path that is composed of intersecting points instead of just a long line.

It's doable.

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 3:58 pm

I just updated the 1st post of this thread to have.
.py script (zipped)

It's more advanced because it composes the path out of many lines meeting at intersections so that you can easily edit the created path.

Reason for me to in .py script is because it's much easier to sort in .py then scheme.

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 8:05 pm

trandoductin wrote:I just updated the 1st post of this thread to have.
.py script (zipped)

It's more advanced because it composes the path out of many lines meeting at intersections so that you can easily edit the created path.

Reason for me to in .py script is because it's much easier to sort in .py then scheme.

That's very cool of you,
thank's T. :bigthup

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 8:53 pm

I used the wrong then. :hehe

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 9:09 pm

trandoductin wrote:I used the wrong then. :hehe

Why do you say that?

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 9:17 pm

"... easier to sort in .py then scheme" should be "... easier to sort in .py than scheme" right?

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 10:02 pm

I downloaded the py. That's a wonderful script.

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 11:24 pm

trandoductin wrote:"... easier to sort in .py then scheme" should be "... easier to sort in .py than scheme" right?

You're not asking me, are you T?
:mrgreen:
I haven't got a clue... :oops:

Re: Guides to Path (scheme script, now python script more advanced).

Mon Sep 19, 2016 11:43 pm

What I saw as examples: great!
Congratulations :)
Will look at the script shortly ...

Re: Guides to Path (scheme script, now python script more advanced).

Tue Sep 20, 2016 1:17 am

Wallace wrote:
trandoductin wrote:"... easier to sort in .py then scheme" should be "... easier to sort in .py than scheme" right?

You're not asking me, are you T?
:mrgreen:
I haven't got a clue... :oops:


I never remember them for sure, i always have to go back to programming if then statements... if something happens then something happens...anything else it's than... that's how i have to go about it..i don't know how i would remember them if i didn't use "if ... then" statements in programming.
Post a reply