It is currently 20 Feb 2018, 23:01

GIMP Python Fu ScriptsDraw Protractor Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 4/8
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258
Contact:
Canada

Draw Protractor Script for GIMP

Post#1 by tim » 23 Oct 2016, 17:47


I was bored, so wrote a script that draws marks of a protractor which works on image or selection bounding box.
Here's the script.
:download:
Draw_Protractor.zip #
zipped .py (unzip and put in your GIMP's /plug-ins/ folder)
(1.63 KiB) Downloaded 67 times
version 2 :download:
Draw_Protractor (2).zip #
faster! Draws marks one single close stroke instead of separate marks so path can be selected as circular selection as well.
(1.69 KiB) Downloaded 42 times
version 3 :download:
Draw_Protractor (3).zip #
extra option to mark inside circle or outside circle
(1.79 KiB) Downloaded 85 times
It's located in Python-Fu -> Draw Protractor...
Draw_Protractor_01_Menu_Location.png
Draw_Protractor_01_Menu_Location.png # (11.99 KiB) Viewed 1543 times (Watermarked | Thumbnail)
You only have option that's the mark length in pixels
Draw_Protractor_02_Script_options.png
Draw_Protractor_02_Script_options.png # (11.2 KiB) Viewed 1543 times (Watermarked | Thumbnail)
Here's sample of the vectors it draws marking 360 degrees, with center point. (blue is protractor when there's no selection it works on whole image, red is when i made a selection).
Draw_Protractor_03_Sample_Output.png
Draw_Protractor_03_Sample_Output.png # (36.01 KiB) Viewed 1543 times (Watermarked | Thumbnail)
Sample using version 3 (with marks inside circle).
protractor_sample_marks_inside_circle.png
protractor_sample_marks_inside_circle.png # (34.67 KiB) Viewed 1472 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 1/8
Posts: 2232
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,251.55 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 470
United States of America

Post#2 by Pat625 » 24 Oct 2016, 04:20


Tin: It strikes me that this could be useful for many things. Would you please give some examples to us?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 4/8
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258
Contact:
Canada

Post#3 by tim » 24 Oct 2016, 04:50


Not sure what people might use it for.
Or if it's even the most efficient way to do things, but i find it's fun to play with protractor.
here are some samples i came up with.
Attachments
protractor_sample_use_01_rough_path.jpg
protractor_sample_use_01_rough_path.jpg # (114.41 KiB) Viewed 1516 times (Watermarked | Thumbnail)
protractor_sample_use_02_move_points_into_place.jpg
protractor_sample_use_02_move_points_into_place.jpg # (217.63 KiB) Viewed 1516 times (Watermarked | Thumbnail)
protractor_sample_use_03_fill_path.jpg
protractor_sample_use_03_fill_path.jpg # (150.1 KiB) Viewed 1516 times (Watermarked | Thumbnail)
protractor_sample_use_04_rough_path.jpg
protractor_sample_use_04_rough_path.jpg # (95.18 KiB) Viewed 1516 times (Watermarked | Thumbnail)
protractor_sample_use_05_move_points_into_place.jpg
protractor_sample_use_05_move_points_into_place.jpg # (99.18 KiB) Viewed 1516 times (Watermarked | Thumbnail)
protractor_sample_use_06_fill_path.jpg
protractor_sample_use_06_fill_path.jpg # (50.42 KiB) Viewed 1516 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Wallace
Forum Member
View: Showcase | Slideshow
Topic Posts: 2/8
Posts: 206
Joined: 11 Oct 2016, 21:24
Cash on hand: 157.44 GLP
Bank: 1,409.62 GLP
Gender: Guy
Location: Arizona USA
Website: http://gimpchat.com
Operating System: Windows
GIMP Version: 2.8.18
My YouTube Channel
My deviantart Account
x 3
x 37
Contact:
Gimp Nation

Post#4 by Wallace » 25 Oct 2016, 02:55


This is cool.
I could have used this script a few years ago, when I was making clocks for use with the program ClocX.
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 4/8
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258
Contact:
Canada

Post#5 by tim » 25 Oct 2016, 03:23


Just looked up clocX.
So you mean you don't play with analog clocks anymore?
I don't think i have use for analog clock.
I remember playing with Unix's different style of clocks way in school and opened up many clocks at the same time to fill the screen with all kind'a different styles.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Wallace
Forum Member
View: Showcase | Slideshow
Topic Posts: 2/8
Posts: 206
Joined: 11 Oct 2016, 21:24
Cash on hand: 157.44 GLP
Bank: 1,409.62 GLP
Gender: Guy
Location: Arizona USA
Website: http://gimpchat.com
Operating System: Windows
GIMP Version: 2.8.18
My YouTube Channel
My deviantart Account
x 3
x 37
Contact:
Gimp Nation

Post#6 by Wallace » 25 Oct 2016, 06:25


admin wrote:Just looked up clocX.
So you mean you don't play with analog clocks anymore?
I don't think i have use for analog clock.
I remember playing with Unix's different style of clocks way in school and opened up many clocks at the same time to fill the screen with all kind'a different styles.
I haven't done anything with clocX in a long time.
I designed lots of clocks.

The screenshot I posted is only a fraction of what I still have.

Image
0 x




User avatar
Rod
Forum Member
View: Showcase | Slideshow
Topic Posts: 1/8
Posts: 11
Joined: 18 Oct 2016, 10:42
Cash on hand: 12.34 GLP
Gender: Guy
x 1
United States of America

Post#7 by Rod » 26 Oct 2016, 10:36


Thank you for version 3 sir! :)
0 x



Image

Post Reply

Last 20 Members Who Visited This Topic

User avatar tim (2)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: leopardo-40
2: Issabella
3: Conbagui
4: Issabella
5: Conbagui
6: Issabella
7: Issabella

Who is online

Users browsing this forum: No registered users and 2 guests