You are here

Draw arrow

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
Description.png47.5 KB
arrow.scm11.24 KB

Update [11/15/2009] : Added fixed brush width and double headed error, removed bug 1) one-point-paths, 2) horizontal paths
Update [11/16/2009] : Fixed image type restriction string
Update [11/19/2009] : Added feature for absolute wing length, fixed handling gray-scale images
Update [25/01/2010]: Fixed fixed opacity bug (thanks to Richard)

This plugin enables GIMP to draw an arbitrary arrow into an image or a new layer. The plugin has reasonable default values for every paramtere but is freely adjustable to ones needs. Parameters are:

  • wing length and line width freely adjustable (relative & absolute)
  • angle between arrow tail and wing
  • optional draw arrow in new layer
  • optional filled or not filled head
  • optional notch in arrow head
  • optional delete used path
  • optional draw double headed arrow

Usage:
Create a path (usually <B>) with the head of the arrow (first anchor point) and the end of the tail (second anchor point). Then call the script which adds itself to the "Tools" menu (I use <AltGr+P> as the shortcut as "Pfeil" is the german word for arrow).

ToDo:

  • Write documentation (any one can help me with that and knows how to?)
  • Open for suggestions
  • Enable a more angularly arrow

You can also contact me via ICQ #52712314 and Jabber/XMPP Hoffmann.P@jabber.ccc.de

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

Just to clarify, when you click arrow under the Tools menu you don't get this menu option?

What version of GIMP are you using, what Operating System do you have? (Windows 7, Vista, XP, Mac).

I would remove the script from the scripts folder and reinstall it. You can see how adding scripts is done here:

http://allthingsgimp.blogspot.com/2009/09/gimp-how-to-install-scripts-pl...

Yes I get get the menu option. I did reload, it's still not working. I'm using Gimp 2.6.11. on a Windows 7 PC.

So this is what I'm doing, please tell me what I'm doing wrong.
1. Open a new file.
2. Select Tools/Arrow
3. Get Menu Option select OK (using Default)
4 Get GIMP Arrow Message about first and last point of path.
5 Select Pencil from Toolbox (I would think I would get an Arrow Tool)
6. Draw a line point to point.
7. I fell I would get an arrow point on this line. But NO arrow???

What I'm looking for is a line with an arrow point on it. How do I get that?

Thanks for your help.
2Old

1. Select the Path Tool from the toolbox
2. On your drawing, place the cursor at the spot where you want the arrow to point.
3. On your drawing, click where you want the other end (the origin of the arrow) of the line.
4. From the Menu, select Tools > Arrow to open the Arrow Plugin dialog.
5. Make desired changes on the dialog.
6. Click OK to create the arrow using the currently selected foreground color, click Reset to change the dialog setting to their default values, or click Cancel to abandon this arrow.

Click on the Path tool and click two points on a new transparent layer over an image or drawing. Then run the arrow script. For the time being, leave the script menu at default.

Just keep in mind, the first Path point will always be the head of the arrow, until you uncheck that option in the menu.

Found it!!! Thanks. Now it's working.

2Old

Very useful plugin, thank you.

It would be, however, much easier to use if one were able to draw the arrow by selecting between a few visual templates, rather than by having to fill in numerical coefficients for geometric parameters describing the various components of an arrow that aren't necessarily very intuitive.

If there were a few samples of the various categories of arrows, the user can immediately recognise the type of arrow they want, and then just tweak one or two parameters (rather than 4 as it is right now) for their desired type of arrow.

It would be great to see this change implemented in a new version.

Thanks :)

Hi, I've translated your plugin in French, it is available here : http://lehollandaisvolant.net/tout/dl/gimp-plugin/arrow-fr.scm .

Here is also a tutorial, in French : http://www.commentcamarche.net/faq/30547-creer-des-fleches-dans-gimp

Thanks for the plugin :)

OK, I'm a gimp newbie and have placed arrow.scm in the appropriate place, and it appears under my tools tab. BUT, I can never get it to work. It is probably just my idiocy in understanding the steps required to make a bloody arrow, but all I ever get is:

Error while executing
(script-fu-draw-arrow 1 2 -2.5 25 TRUE 75 -25 TRUE FALSE TRUE FALSE FALSE)
ERROR: unbound variable (errobj gimp-image-get-active-vectors)

Does this create an "Oh yeah - the dummy isn't doing X right"? response? If so, please let me know what I'm doing wrong. Step by step instructions on how to make the arrow would be wonderful. I'm confused by the layers, whether to use pencil or brush, etc... however, no matter what I do, I only get the above error. Every time. I'm running Debian. Apparently I'm not doing things to create appropriate "active vectors", but I have no idea why or how to fix this. Thanks, Bill

Just in case that is of any use to anyone.

Pages

Subscribe to Comments for &quot;Draw arrow&quot;