It is currently Mon Apr 15, 2024 11:36 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 12:57 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
This script spawned from this post --> mahvin's request for another Golden Wilbur
Release #1.
Attachment:
label_arrows_from_path.zip [5.85 KiB]
Downloaded 581 times


Menu location:
Image

Options:
Image

Instructions: ----------------------------------------------------------------------
Have an active path that defines your arrow(s).
Image

Run Script -> result. (You'll get 3 layers, an arrows layer, a circle fill layer, and a numbers layer)

Image

Note: This script is a stand-alone script. It has a copy of Ofnuts arrowheads code internally and does not depend on Ofnuts arrowheads .py script.

If ya find this script useful, you can thank Ofnuts, without his code I don't know how i'd hack the arrow heads (it's a little more complex and I think i would make it really messy) :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: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 3:10 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Excellent! I actually tested it out on a small tutorial on my website. Good job, Tin!

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


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:04 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Does the direction of the arrows come from the order of the path nodes?


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:26 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
2-ton wrote:
Does the direction of the arrows come from the order of the path nodes?

Yep.

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:26 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
mahvin wrote:
Excellent! I actually tested it out on a small tutorial on my website. Good job, Tin!

I still want that Golden Wilbur! :hehe

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:30 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
The Golden Wilbur, most coveted prize in the GIMP world. ;) I'll see that you get them.

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


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:35 pm  (#7) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
As I accept the the Golden Wilbur:
"I'd like to thank mahvin for coming up with the idea of this script. I'd like to thank fellow script coders like Ofnuts for his code. Without it this wouldn't happen. I'd like to thank Happy Smiling Big Belly Buddha! I'd like to thank The Lord, I'd like to thank my parents, ..." keeps on thanking people.
"And last but not least .. I'd like to thank Gimp Chat forum"
:hehe

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sat Sep 24, 2016 4:40 pm  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
downloads/views rate = 9/99 = 0.09
9%
almost double the interest as the "Select guides surrounding path points script"

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sun Sep 25, 2016 4:15 am  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
trandoductin wrote:
As I accept the the Golden Wilbur:
"I'd like to thank mahvin for coming up with the idea of this script. I'd like to thank fellow script coders like Ofnuts for his code. Without it this wouldn't happen. I'd like to thank Happy Smiling Big Belly Buddha! I'd like to thank The Lord, I'd like to thank my parents, ..." keeps on thanking people.
"And last but not least .. I'd like to thank Gimp Chat forum"
:hehe

Given the code, I want a 50% share on the prize :)

_________________
Image


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sun Sep 25, 2016 5:19 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Interesting script.
A request or perhaps a challenge? Will you add the ability to use words within different shapes? :)
Also when i used a closed path it actually created a circle on the last node added and stroked the path but no arrow head. I just thought that was interesting to note. Makes for a different type of pointer at the end of the label.

Image

Robs path label script in (Scheme) allows the user to add words at different node points. Just thinking if you used your words to shapes filter and add the path nodes to label arrows. What would that look like? :)
Image

One more suggestion is to add all your current and future PATH filters to the <vectors> menu so a user could open them from the paths layers. It just seems like the proper place for them to be.

Thanks for the new script sir! :clap

_________________
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: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sun Sep 25, 2016 10:50 am  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
ofnuts wrote:
Given the code, I want a 50% share on the prize :)


I'll gladly share 50% of the prize. I think it's worth like a gazillion dollars.

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Sun Sep 25, 2016 10:55 am  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Rod wrote:
Interesting script.
A request or perhaps a challenge? Will you add the ability to use words within different shapes? :)
Also when i used a closed path it actually created a circle on the last node added and stroked the path but no arrow head. I just thought that was interesting to note. Makes for a different type of pointer at the end of the label.

[ Image ]

Robs path label script in (Scheme) allows the user to add words at different node points. Just thinking if you used your words to shapes filter and add the path nodes to label arrows. What would that look like? :)
[ Image ]

One more suggestion is to add all your current and future PATH filters to the <vectors> menu so a user could open them from the paths layers. It just seems like the proper place for them to be.

Thanks for the new script sir! :clap


That's too hard of a challenge, I don't know how to fit words into different shapes.
As for menu change, if i put with vectors, it would see off since other ofnuts paths tools seem to generate other paths, this one doesn't generate paths. If you really want you can change that yourself.
I think the script is pretty good right now as is for labeling key points for tutorials.

_________________
TinT


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Tue Oct 11, 2016 12:39 pm  (#13) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
I just created my own "Golden Wilbur"
for my forum icon. hehe
Image

_________________
TinT


Last edited by trandoductin on Wed Nov 28, 2018 12:45 pm, edited 1 time in total.

Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Tue Oct 11, 2016 1:09 pm  (#14) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13003
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
I just created my own "Golden Wilbur"
for my forum icon. hehe
[ Image ]

I like your "Golden Wilbur" icon. :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: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Tue Oct 11, 2016 1:35 pm  (#15) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
yeah i added it as a smiley too just for kicks..
I wonder if anyone wants to volunteer (since i can't pay anything :oops: ) to design fun smilies for my forum?
here's one i did Image his eyes move

_________________
TinT


Last edited by trandoductin on Wed Nov 28, 2018 12:44 pm, edited 1 time in total.

Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Tue Oct 11, 2016 9:18 pm  (#16) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
I haven't forgotten your Golden Wilber! :)

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


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Thu Apr 06, 2017 1:29 am  (#17) 
Offline
New Member

Joined: Apr 06, 2017
Posts: 1
cool and great. It's really useful


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Thu Apr 06, 2017 3:04 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Dec 15, 2014
Posts: 185
Location: France
I'll try this.

_________________
Image


Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Thu Apr 06, 2017 10:37 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Could you give a thought to providing a text output as per image below
Image
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Sat Apr 08, 2017 10:34 pm, edited 1 time in total.

Top
 Post subject: Re: Label Arrows From Path (.py script) ...featuring Bruce Lee Parts
PostPosted: Fri Apr 07, 2017 6:17 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
Could you give a thought to providing a text output as per image below
[ Image ]

That is a great idea Graechan. I hope it can be added. Though i have not seen Tran around for a bit.

_________________
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 new topic Reply to topic  [ 20 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Darkening specific parts of a photo

10

No new posts Draw Arrows/Draw Shapes: Sorry! My download link hadn't worked.

0

No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3

No new posts Attachment(s) Path copy rotate shift plus + Path copy rotate shift walk Play

79

No new posts Attachment(s) Path

9



* Login  



Powered by phpBB3 © phpBB Group