Shape Paths

This is a collection of Script-Fus that create Paths in the form of geometric shapes. Squares, rectangles, rounded rectangles, circles, ellipses, ovals, polygons, stars, flowers, gears, triangle waves, square waves, and sine waves are currently supported.

Version 0.91 is updated for GIMP 2.4.x! It now supports automatic stroking and filling!

How to install:

  1. Right-click on the link below that says "shape-path-0.91.scm". A pop-up menu should appear. Click "Save Target As..." or "Save Link As..." or whatever the equivalent option in your browser is.
  2. Save the file "shape-path-0.91.scm" in your scripts folder. If you're not sure where your scripts folder is, you can check by opening GIMP and going to <Toolbox>/File/Preferences -> Folders -> Scripts. If more than one folder is shown, then any one of them will work.
  3. Once you have saved the file in your scripts folder, if you are already running GIMP, either click <Toolbox>/Xtns/Script-Fu/Refresh Scripts, or just close and reopen GIMP.
  4. If you have done this correctly, the scripts will appear in the menu under <Image>/Script-Fu/Shape Paths. If this menu is not there, try clicking <Toolbox>/Xtns/Script-Fu/Refresh Scripts. If it's still not there, make sure the file is in your scripts folder and that the filename ends with ".scm", not ".txt" or ".scm.txt" or something.
AttachmentSize
shape-path-0.91.scm38.19 KB
shape-path-0.7.scm48.29 KB

Comments

Hand-holding tutorial?

Hello people,

I'm using Ubuntu Linux with included Gimp, I have some knowledge about saving a file and putting it into required directory :) however, I have next to no experience with Gimp. I have correctly *installed* the plugin, but how do I USE it? Let's say I have just a blank new image and want to create a red ellipse. I selected Script-Fu > Shape Paths > Ellipse, changed the stroke color to red, ticked "stroke path", clicked OK. But all that appears is a small red dot in the upper left-hand corner! I tried clicking it with Path tool and moving it, but nothing happens. :( Do I have to draw something with Path tool first, and then use Shape Path? I have absolutely no idea how to make something useful with it and there's no help on it. Please, can someone give me a small hand-holding tutorial? THX for any assistance.

How about an image instead?

No values

Hi.

Have a little trouble using the script. Seems to work fine... BUT it does'nt allow me to choose any values for the shapes, and therefore I can't make any! What to do? Here's a screen dump: http://i54.tinypic.com/111m89g.jpg

Thanks!

Which script did you add?

Which one did you install? When I first started using GIMP, I inadvertently added both scripts to my scripts folder and it resulted in what you are experiencing now. Use only the highest version (.91). Remove the older script from your folder.

HTH

:)

LOVE IT! WORKS GREAT! ... YOU'RE A GENIUS!! ;)
THANK YOU, THANK YOU, THANK YOU!

HELP

IM SORRY BUT I DONT KNOW HOW TO DONWLOAD IT.

How download the .scm file

Right click mith your mouse on the link, and press "save as target", or "save link content as". Choose you script folder.

中文

maybe I missed it

Hi, While I know I have put the script in the correct folder, etc... I am not a newbie to Gimp, I can't for the life of me, get this to give me any shape. It gives me nothing at all. I'm using newest Gimp version. Just a note, for those who get so mad , come on, people are creating scripts for idiots like us who don't know how or are too lazy so give them a break or shut up and make them yourself. Cheers, GG

path may be not visible

paths ,and so shapes created by paths may be not visible (except in the path windows) if you do not stroke them And even if somehow visible they will no be visible in the saved image (again ,if you do NOT stroke them )and they will get lost (the path not the stroked lines) if you do not save as xcf

Hint: the script is called

Hint: the script is called "Shape Paths".

You do know where paths are supposed to appear?

Great work!

This highlights the beauty of open source software! Keep up the good work!

Super! :)

Everything works great though it took me a few trial/errors to get the rectangles to draw correctly (though you can still get more interesting shapes with the inverted corners) Love it! Thanks a bundle! -MerryMuffinz

Scripts fail in 2.6.4

Tried several times and keep getting this: Error while executing script-fu-gear-path: Error: not enough arguments It won't allow me to add any parameters or give any input into any of the functions, so they remain at zero and the script fails.

Have the exact same problem. :(

In gimp 2.6.6. I can find the script under the script-fu menu > shape paths, all the options are there but I keep getting the error message. :( What can I do? I was really pleased to find this script.

Solved.

My apologies, I must have read over the post that said don't load both at once. That's what I did. It works now. :)

Scripts fail in 2.6.4? check FX foundry for a updated version

Then first check FX-Foundry good chances to find a updated version ready to be downloaded You have no to download the whole pack, you may serch and download also single script About the link just google for" Fx Foundry Sourceforge "or use this side search engine (under the banner at the right ),again for "Fx-Foundry"

I have not put any updated

I have not put any updated versions of this script on FX-Foundry. Any updated versions I make will be posted here. And I'm not seeing this error the previous poster reported. The script works fine for me. Unless maybe (best guess) they were calling it from the Script-Fu console instead of the menus, in which case the dialog box doesn't appear and you have to type in all the parameters on the command line. That's normal.

Don't load both shape-path scripts!

I loaded both scripts at once, and .7 was causing .91 to fail. Once I removed .7, version .91 worked perfectly. Just thought I would let you know, in case someone else does what I did.

It works !

I just tried on Win xp with gimp 2.6.5 I even play some dirty tricks, as ask to rotate a not existing path, result was just a popping tip, suggesting to first create a path so seems not only to work but even to handle well users errors

Gimp is a great app but...

Whoever develops this was retarded not to include Shapes in the TOOLBOX. Geometry is the basis of everything. A Path tool is no way to create simple shapes effectively, quickly or easily. Thanks for slowing us down.

RE :"Whoever develops this was retarded.."

You too are retarded if you fail to notice how is easy change menu location of scripts, and that doing that do NOT require any knowledge of scripting, but just use something like the notepad to open the script So please instead then insulting, open the notepad and edit the path you will notice at the end of the script ,if you dislike it so much see here "(script-fu-register "script-fu-duplicate-rotate-vector2" "Image/Filters/Shapes/Duplicate and Rotate a path..." the path is "Image/Filters/Shapes/Duplicate and Rotate a path..." if you do not like you may ad example move the script in a brand new gimp "Shape" menu is simple as replace that with "Image/Shapes/Duplicate and Rotate a path..." PS i had to remove the arrows around to "Image" or the path would be seen in this forum as HTML tag and stripped away...has to be enclosed in arrow as you may see by yourself opening any script

no

Doesn't matter, fact is that stuff like this should be in the toolbox not hidden in a file somewhere. The point is that the program GUI should be intuitive and that's not something GIMP does well. This particular subject has annoyed me immensely and i have several years of analytic/graphical/coding background.

Someone with several years

Someone with several years of coding background could have a look at a shapes tool. There is an enhancement request in Bugzilla. It might be useful to have a look at the vector layers patch, too.

Here's a thought: calling me

Here's a thought: calling me retarded may not be the best way to get my help. As PhotoComiX said, if you don't like where I registered the scripts in the menus, you can change it yourself. Though I'm not sure you can register scripts under the toolbox anymore as of GIMP 2.6.x. Even if you could, it wouldn't make that much difference in how the script works, anyway.

Here's a thought: calling me

No he can't move scripts in the toolbox : that now is off-limits for menu. In the best case... if was indicated a old toolbox menu ,they will be automatically moved in File(for logos) or Filter menu. No script author may add a toolbox menu, if not to obsolete or deeply hacked version of gimp

We talk of extra plugin

We talk of extra plugin here Do you want dump all of them all in the toolbox, and you think that will make their search more easy ?

What am I missing.

When I try and change the values in any feild except name they dissapear when I tab. I am very new to using Gimp and really all graphics editing programs in general so please go easy on me.

Problem in XP

I can't get it to work. It just gives me a white rectangle. Susana

Thank you, its amazing

Thank you, its amazing script now my work is so easy :))))) DivX кодек

Love it, Blogged

Wonderful plugin! I have been using it for a few months and just wrote a tutorial that lists it as a requirement: How to make web 2.0 badges WITHOUT your pirated copy of Photoshop.

Nice demo of the plug-in.

Nice demo of the plug-in. Thanks to the author for the script, it works as advertised.

Shape to path Script

Hello! I'm pretty new to Gimp and would love to be able to use your script, however, I have no idea what I'm supposed to do with the written text! (smile) Would you let me know? Thanks in advance for your assistance.

How to install

Just save the .scm file in your scripts folder. If you don't know where your scripts folder is, go to <Toolbox>/File/Preferences, click "Folders", then click "Scripts" and you'll see your script folder's path. If it shows more than one folder, then any one of them will work. If you're still running GIMP when you put the file in the folder, then click <Toolbox>/Xtns/Script-Fu/Refresh Scripts, or just close and reopen GIMP, and you should be able to use the script from <Image>/Script-Fu/Shape Paths.

Call me stupid, but I still

Call me stupid, but I still can't find it. I'm used to scripts that come ready to load, like for gradients, in ggr files and such. These scripts consisting of pages of text and I do not get along! (Laughing)!

If you know where to save

If you know where to save gradient files, then your scripts folder should be in the same folder as the gradients folder. For example, if the gradients folder is (something)/.gimp-2.4/gradients, then the scripts folder should be in (something)/.gimp-2.4/scripts. Just put the .scm file there and you should be good to go.

BUT .....

Maybe I have not explained this clearly. Let me try again. NORMALLY when I have downloaded scripts, I get an actual FILE with the .scm annex. When I click on YOUR link, all I get is the written CODE, not a file. Now my question is, do I need to SAVE the CODE to an SCM file myself, or just put the 6 pages of code in there under a .txt file??? Thanks!

You just save the code to a

You just save the code to a .scm file. (NOT .txt!) You should be able to just right-click the link and click "Save Link As..." or "Save Target As..." (or something similar, depending on your browser).

Right. I've figured that out with the help of a friend.

I did want to mention one thing, though. I've noticed that most of you who post these scripts and such assume that EVERYONE will know what to do with them. That is not the case. That description you just gave would have alleviated the problem of our going back and forth. I'm not technically inclined, and a good percentage of Gimp users are not. It would be nice if you guys would keep that in mind. Now if you have a legal question, than I'm your gal. Thanks for sharing the script.

happy you solved

anyway nobody assume that everybody know things by magic For that there are FAQ on www.gimp.org on www.gimptalk.com, on the Gimp page on sourceforge, and pages on the gimp help, all explaining how to. and your anyway was not a problem with gimp, but with your browser (and/or with the RIGHT click options of the mouse that has 2 buttons because both are needed not only the left )

.txt extension

I'd be interested to know where the .txt-extension comes from. It should not happen and when I click on the .scms on this page, I get the code, not text. Could you elaborate a little on what you did?

txt.extension

that happen on windows. windows offer only 2 options to save something as a script. the only visible to most user is save as .txt, but that is a dropdown menu that has another less visible option "save as all files". But even less may imagine that "save as all files" means in windows OS "save as is do not change file extension" then is another horror for windows user, a dumb default option to "hide extension for commune files". Effect is that many save a script as example "layer-tricks.scm" as "layer-trick.scm.txt" but since "txt" is a commune file tipe, the extension is hided so windows user may only see "layer-trick.scm" , that will seem correct and they will never understand why it dooesn't work, (till they don't correct that dumb option )

Hi, Thanks for an excellent

Hi, Thanks for an excellent script. In my Windows XP system, I had to change all the maximum value for the numeric variables from 4294967296 to 65536 to make the scripts work. S. Rathinagiri.

Alright

I changed it to 65536 in version 0.91.

Good script

Yes, I have this problem, I change these vaules with -2147483647 and 2147483647.

make sure to unblock

Sometimes after you download a script file, you must unblock it also.Here is how to do that.

right click on the script file / Select properties and then click on unblock (should be at the bottom)
or that could also cause them to not function properly.

regards,
Rod

Syndicate content