It is currently Wed Jul 03, 2024 6:55 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Gradient Along Path by Ofnuts
PostPosted: Fri May 18, 2018 3:48 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Just found out Ofnuts has uploaded new python plugin on his sourceforge page yesterday, "gradient along path".
I love this, so cool outcomes. You can specify gradient width, precision, cap and join style, and miter limit.
I couldn't get it to work with 2.8 on Windows:
Calling error for procedure 'gimp-procedural-db-proc-info':
Procedure 'gimp-context-set-stroke-method' not found.

but it works with 2.10 on Xubuntu (otto-kesselgulasch PPA)

Image

https://sourceforge.net/projects/gimp-p ... s/scripts/


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: Gradient Along Path by Ofnuts
PostPosted: Fri May 18, 2018 4:42 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Works in Gimp 2.10.1 AppImage once you delete 1st line in script.....

Attachment:
OFN_Gradient_path.jpg
OFN_Gradient_path.jpg [ 64.26 KiB | Viewed 6932 times ]


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Sat May 19, 2018 6:09 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
This is a plugin just for Gimp 2.10.x The g-f.net post says

Quote:
First script to use new APIs in Gimp 2.10 (at last, the APi to stroke paths in "line" mode...). More or less a rewritten neon-path.


Generally no need to delete anything in the script. Works in Windows with the regular Gimp 2.10 and in a linux flatpak, although you might have some problems with the 32 bit samj portable (such is life).

not limited to lettering.

Image

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Sat May 19, 2018 4:23 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
I only had to delete 1st line for this script to show up in Gimp 2.10.1 AppImage, no problems with other versions of Gimp 2.10. Yes it works well with any path shape...

Attachment:
OFN_Gradient_path2.jpg
OFN_Gradient_path2.jpg [ 136.02 KiB | Viewed 6833 times ]


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Tue May 22, 2018 5:16 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
racer-x wrote:
Works in Gimp 2.10.1 AppImage once you delete 1st line in script.....

Attachment:
OFN_Gradient_path.jpg


Must be a bug/shortcoming in AppImage. First line is perfectly legit for a Linux executable.

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Tue May 22, 2018 5:18 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Nidhogg wrote:
Just found out Ofnuts has uploaded new python plugin on his sourceforge page yesterday, "gradient along path".
I love this, so cool outcomes. You can specify gradient width, precision, cap and join style, and miter limit.
I couldn't get it to work with 2.8 on Windows:
Calling error for procedure 'gimp-procedural-db-proc-info':
Procedure 'gimp-context-set-stroke-method' not found.

but it works with 2.10 on Xubuntu (otto-kesselgulasch PPA)

[ Image ]

https://sourceforge.net/projects/gimp-p ... s/scripts/


The README file in the download page (which is also displayed with a nice formatting at the bottom of the same) explicitly states that this script requires 2.10 (if could possibly run in 2.9...).

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Thu May 24, 2018 9:22 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Yeah, I started foaming at the mouth and lost ability to read when I saw this cool new plugin.
Back when you did the stroke-or-fill-visible-paths plugin I hoped it could do this.
:tyspin


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Thu May 24, 2018 4:59 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
My closest script was neon-path, but it wouldn't do pointy bits...

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Mon Feb 25, 2019 3:58 pm  (#9) 
Offline
GimpChat Member

Joined: Feb 25, 2019
Posts: 6
Hey guys. I'm pretty new to GIMP but i'm not afraid to learn. I usually don't make posts because I am good at find the info I need in other posts. However, I found this potentially awsome script and I can't seem to figure out how to use it. I have installed it to the plugins folder, restarted GIMP and folowed the usage instructions contained within the zip. But no matter where I look, I cannot find Decorate>Gradient along path... It is not within my right click menu at all. I have tried right clicking directly from the paths list on the desired path. I have also tried activating it wil the paths tool and right clicking from there also. I am using GIMP 2.10.8 on windows 7 if that helps. Please help a brotha out! This script is absolutely essential to saving time on my projects!!! Thanks a million!


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Mon Feb 25, 2019 4:19 pm  (#10) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
Attachment:
ofn.jpg
ofn.jpg [ 132.16 KiB | Viewed 6099 times ]


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Mon Feb 25, 2019 9:29 pm  (#11) 
Offline
GimpChat Member

Joined: Feb 25, 2019
Posts: 6
Yeah that's what I thought, however...


Attachments:
Gradient to Path Problem 2.jpg
Gradient to Path Problem 2.jpg [ 243.78 KiB | Viewed 2609 times ]
Gradient to Path Problem.jpg
Gradient to Path Problem.jpg [ 200.7 KiB | Viewed 2609 times ]
Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Mon Feb 25, 2019 9:52 pm  (#12) 
Offline
GimpChat Member

Joined: Feb 25, 2019
Posts: 6
Okay so I've figured it out. As some python scripts can be run from folders, others can not I guess... This is one of them. I put the script directly into the plugins folder and it workes fine now. I wonder why that is? I have about 3 other .py scripts that I downloaded today and GIMP is smart enough to find them when I extracted them into their own folder. This one GIMP was not able to find within it's own folder... Weird...

Anyway, thanks for the help!


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Tue Feb 26, 2019 5:13 am  (#13) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
In Gimp 2.10, the plugin must have the same name as the folder. I believe the rationale is like this:

- There are simple plugins (one single Python file) and complex ones (several Python files, one "main" and various "modules")
- No real point in putting the simple ones in their own directory
- Having a specific directory for multi-file plugins however makes a lot of sense: easier to manage, avoids name clashes among "modules" from other plugins...
- But then it doesn't make much sense to try to run each individual module for registration. This will fail, and worse, Gimp would retry on each startup.
- So Gimp needs a criteria to find the Python file with the registration code(*). It could have been a fixed name (for instance gimp-main.py) but this would have made plugins hard to share between 2.8 (where the plugin subdirectories aren't looked up) and 2.10. The "same name as the folder" criterion, by contrast, still allows plugins to have an expliclt name

(*) Of course,if it were only for Linux & OSX, Gimp would just rely on the "executable" flag, that doesn't need to be set on the modules. So that behavior must be for the benefit of the Windows users.

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Tue Feb 26, 2019 5:46 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
What's the reason to put user made plug-ins in Gimp installation folder and not the user plug-ins folder in AppData/Roaming/GIMP?


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Wed Feb 27, 2019 2:26 pm  (#15) 
Offline
GimpChat Member

Joined: Feb 25, 2019
Posts: 6
ofnuts wrote:
In Gimp 2.10, the plugin must have the same name as the folder. I believe the rationale is like this:

- There are simple plugins (one single Python file) and complex ones (several Python files, one "main" and various "modules")
- No real point in putting the simple ones in their own directory
- Having a specific directory for multi-file plugins however makes a lot of sense: easier to manage, avoids name clashes among "modules" from other plugins...
- But then it doesn't make much sense to try to run each individual module for registration. This will fail, and worse, Gimp would retry on each startup.
- So Gimp needs a criteria to find the Python file with the registration code(*). It could have been a fixed name (for instance gimp-main.py) but this would have made plugins hard to share between 2.8 (where the plugin subdirectories aren't looked up) and 2.10. The "same name as the folder" criterion, by contrast, still allows plugins to have an expliclt name

(*) Of course,if it were only for Linux & OSX, Gimp would just rely on the "executable" flag, that doesn't need to be set on the modules. So that behavior must be for the benefit of the Windows users.


I think I get what you are saying, but what is the reason for gimp executing one but not the other as shown below? Is it because the HTML read me was included in the same folder and thus GIMP became confused? The guides to path script executes perfectly within the folder...


Attachments:
guides_to_path execution.jpg
guides_to_path execution.jpg [ 246.52 KiB | Viewed 2388 times ]
ofn-gradient-along-path execution.jpg
ofn-gradient-along-path execution.jpg [ 278.55 KiB | Viewed 2388 times ]
Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Wed Feb 27, 2019 3:35 pm  (#16) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Nothing in o-g-a-p that makes it folder dependent. Did you try to put it the common folder? What makes you say it doesn't run? You can't find the menu entry for it?

_________________
Image


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Thu Feb 28, 2019 11:49 am  (#17) 
Offline
GimpChat Member

Joined: Feb 25, 2019
Posts: 6
ofnuts wrote:
Nothing in o-g-a-p that makes it folder dependent. Did you try to put it the common folder? What makes you say it doesn't run? You can't find the menu entry for it?


Yeah the post with the pics at the top of this page from me were to show that it didn't run until I put the .py script in the plug-ins folder directly, instead of it's own indipendant folder. But it was the only time that has happened to me. I usually simply extract the zip file containing the script directly into it's own folder via the right click menu (right click on ofn-gradient-along-path.zip and select extract to "ofn-gradient-along-path\"). The only difference between this script and any other script I've run is that the extracted folder contained the HTML read me file. So I don't know. Are you able to recreate the issue on your end?

Thanks.


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Thu Feb 28, 2019 1:31 pm  (#18) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Nifty path decoration, Ofnuts. Kudos!

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


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Sat Jul 09, 2022 9:25 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Accidentally came across a different way to make 3D Text. However there is a notable difference on effects depending on the style of font. Each work differently, so as hard as I tried, I could not make different font styles behave the same way in trying to obtain the same effect from another style of font. Experimentation may or may not enlighten you. Ofnut's technique (please donate beer money to him) is key to making this work, so check out what he says here.

The only thing I did differently was after inverting the selection on the text, I moved the saved path slightly diagonal a centimeter or two (try any direction) and then of course run GAP from the right click menu on that path. Keep your gradient width at 50 or higher, choose "very fine" for precision, and miter limit at zero. My first result surprised me (I was like WHOA!):

Image

Determined to repeat the results, I tried using the same font, different letters, and didn't quite get the same results, although I did change miter limit to 4:

Image

It was here I learned that lighting effects can be a serious PITA, so I moved over to Bump Map and started all over again, keeping the path intact, the same way in Ofnut's instructions, and got this result:

Image

Just posting this in case you like what you see and want to give it a try, yourself.

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


Top
 Post subject: Re: Gradient Along Path by Ofnuts
PostPosted: Sat Jul 09, 2022 9:39 am  (#20) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
That is pretty good Mahvin. I always say that if you're willing, you can learn new thing by experimenting. :clap

_________________
https://www.deviantart.com/pocholo17
Image


Top
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
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) Made An Animated GIF With An Ofnuts Script

35

No new posts Attachment(s) Outline Layer Contents by Ofnuts

2

No new posts Attachment(s) Gradient from Image

14

No new posts Attachment(s) Gradient to Pallette

11



* Login  



Powered by phpBB3 © phpBB Group