It is currently Fri Apr 19, 2024 5:31 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Guides to Path (scheme script, now python script more advanced).
PostPosted: Sun Sep 18, 2016 8:36 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
This script is spawned from Rod's thread/request

Rel 2. works on selection bounding box/rectangle. (USE .py instead of .scm).
Attachment:
guides_to_path.scm [5.51 KiB]
Downloaded 572 times


REMOVE .scm above,
Use the .py below it's more advanced (registered under same location)
Release 1.
Attachment:
guides_to_path.zip [1.76 KiB]
Downloaded 809 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

_________________
TinT


Last edited by trandoductin on Mon Sep 19, 2016 4:10 pm, edited 3 times 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: Guides to Path (scheme script).
PostPosted: Sun Sep 18, 2016 9:02 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Sun Sep 18, 2016 9:23 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Great job, Tin! Works like a charm for me.

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


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Sun Sep 18, 2016 9:40 pm  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13011
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Sweet script!
Thanks T.
:jumpclap

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


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Sun Sep 18, 2016 9:54 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
mahvin & Wallace: :hi5
There isn't a smilies with 3 heads hi5ing :yes

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Sun Sep 18, 2016 11:07 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
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

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


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Mon Sep 19, 2016 3:01 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2241
Location: Poland
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


Attachments:
Guidestopath.png
Guidestopath.png [ 46.61 KiB | Viewed 12161 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Mon Sep 19, 2016 5:01 am  (#8) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2419
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
Attachment:
ofn-0.jpg
ofn-0.jpg [ 68.47 KiB | Viewed 12144 times ]

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


Attachments:
ofn-1.jpg
ofn-1.jpg [ 66.73 KiB | Viewed 12144 times ]

_________________
Image
Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Mon Sep 19, 2016 5:58 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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

_________________
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: Guides to Path (scheme script).
PostPosted: Mon Sep 19, 2016 9:19 am  (#10) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
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?

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


Top
 Post subject: Re: Guides to Path (scheme script).
PostPosted: Mon Sep 19, 2016 2:21 pm  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 3:58 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 8:05 pm  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13011
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
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

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


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 8:53 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
I used the wrong then. :hehe

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 9:09 pm  (#15) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13011
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
I used the wrong then. :hehe

Why do you say that?

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


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 9:17 pm  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
"... easier to sort in .py then scheme" should be "... easier to sort in .py than scheme" right?

_________________
TinT


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 10:02 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
I downloaded the py. That's a wonderful script.


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 11:24 pm  (#18) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13011
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
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:

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


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Mon Sep 19, 2016 11:43 pm  (#19) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
What I saw as examples: great!
Congratulations :)
Will look at the script shortly ...


Top
 Post subject: Re: Guides to Path (scheme script, now python script more advanced).
PostPosted: Tue Sep 20, 2016 1:17 am  (#20) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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.

_________________
TinT


Top
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Falling snow animated Scheme Script for Gimp

121

No new posts Attachment(s) Learning to do first Python script

6

No new posts Attachment(s) My first Python Script for Gimp

7

No new posts .py script not showing under Python-Fu

3

No new posts Does anyone have script fu and python plugins that work on 2.99.19?

1



* Login  



Powered by phpBB3 © phpBB Group