It is currently 09 May 2021, 06:38

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Draw Protractor Script for GIMP

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger

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.
Draw_Protractor.zip #
zipped .py (unzip and put in your GIMP's /plug-ins/ folder)
(1.63 KiB) Downloaded 173 times
Draw_Protractor (2).zip #
version 2. 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 148 times
Draw_Protractor (3).zip #
version 3. extra option to mark inside circle or outside circle
(1.79 KiB) Downloaded 249 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 7125 times (Thumbnail | Recognize | Sq Tile)
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 7125 times (Thumbnail | Recognize | Sq Tile)
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 7125 times (Thumbnail | Recognize | Sq Tile)
Sample using version 3 (with marks inside circle).
protractor_sample_marks_inside_circle.png
protractor_sample_marks_inside_circle.png # (34.67 KiB) Viewed 7054 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

Pat625
Tutorial Creator

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?

tim
GL Blogger

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 7098 times (Thumbnail | Recognize | Sq Tile)
protractor_sample_use_02_move_points_into_place.jpg
protractor_sample_use_02_move_points_into_place.jpg # (217.63 KiB) Viewed 7098 times (Thumbnail | Recognize | Sq Tile)
protractor_sample_use_03_fill_path.jpg
protractor_sample_use_03_fill_path.jpg # (150.1 KiB) Viewed 7098 times (Thumbnail | Recognize | Sq Tile)
protractor_sample_use_04_rough_path.jpg
protractor_sample_use_04_rough_path.jpg # (95.18 KiB) Viewed 7098 times (Thumbnail | Recognize | Sq Tile)
protractor_sample_use_05_move_points_into_place.jpg
protractor_sample_use_05_move_points_into_place.jpg # (99.18 KiB) Viewed 7098 times (Thumbnail | Recognize | Sq Tile)
protractor_sample_use_06_fill_path.jpg
protractor_sample_use_06_fill_path.jpg # (50.42 KiB) Viewed 7098 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

Wallace
Global Moderator

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.
Image

tim
GL Blogger

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.
aka Tin

         

Wallace
Global Moderator

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]Sorry Image Not Found[/image]
Image

Rod
Forum Member

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


Thank you for version 3 sir! :)
Image

tim
GL Blogger

Post#8 by tim » 26 Oct 2016, 15:59


you're welcome sir!
aka Tin

         


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 36 guests