It is currently Mon Jun 08, 2026 2:44 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 153 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8
Author Message
 Post subject: Re: Path Blend Script
PostPosted: Wed Sep 28, 2022 3:07 pm  (#141) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
That one worked. I note that the problematic CUSTOM-MODE reference appears to have been replaced by BLEND-CUSTOM, and NORMAL-MODE by LAYER-MODE-NORMAL as well.

Did you make the changes? If so, how (as in, in the world?) did you know what to change them to? I've had no luck finding references for these... whatever-they-are.

Also these scripts you've posted are v1.3, but there was a later version v1.4 which added the ability to get the starting value of the gradient by sampling the source at runtime.

I thank you.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 1:19 am  (#142) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16019
gramp wrote:
That one worked. I note that the problematic CUSTOM-MODE reference appears to have been replaced by BLEND-CUSTOM, and NORMAL-MODE by LAYER-MODE-NORMAL as well.

Did you make the changes? If so, how (as in, in the world?) did you know what to change them to? I've had no luck finding references for these... whatever-they-are.

Also these scripts you've posted are v1.3, but there was a later version v1.4 which added the ability to get the starting value of the gradient by sampling the source at runtime.

I thank you.

Help>Procedure Browser. Type gimp-layer-get-mode in the search box. The correct mode syntax for scripting will be shown in the right hand window. :bigthup

Attachment:
2022-09-29_021545.jpg
2022-09-29_021545.jpg [ 152.05 KiB | Viewed 1058 times ]

_________________
Image


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 4:09 am  (#143) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2602
@gramp

Updating is just as Rod described, you should be ok using linux which has somewhat better tools than basic Windows when it comes to editing scripts.

Quote:
Also these scripts you've posted are v1.3, but there was a later version v1.4 which added the ability to get the starting value of the gradient by sampling the source at runtime.


Thanks for the reminder ;) The Gimp 2.9 version was the first I came across in my archive. A bit further and I have the 1.4 version. Fixed same as before. attached.

Attachment:
RMA_path_blend.zip [2.85 KiB]
Downloaded 60 times


This is it working and just for info Ofnuts has a couple of plugins for rendering along a path(s) not the same but you can get some nice effects.

Attachment:
gradient.jpg
gradient.jpg [ 81.65 KiB | Viewed 1045 times ]


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 5:41 am  (#144) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
@Rod Thanks. I had visited Help->Procedures, but went all-goofy when I got there and messed about looking for the Compleat List of Parameters (which is what I'll call CUSTOM-MODE and NORMAL-MODE). I did not recognize that the Function's the Thing in there.

I do think there ought to be a list of those Reserved Words somewhere, and ideally, a mapping of how they've evolved across versions.

@rich2005 Thanks for the hand up. I have tried hard to "collect everything Ofnuts ever wrote.", but I have been off-line for some months and expect/hope it has doubled.

@ofnuts Salami, salami, baloni.

@RMA Don't want to forget the reason my question was even askable. Paraphrasing the great philosopher, Yogi Berra, "Thank you for making this problem necessary."

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 7:20 am  (#145) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2602
@gramp
I am still wondering why the Gimp 2.9 version, which I pull out for use occasionally, works for me but not on your setup. The only thing I can think of is a Gimp compatibility switch --pdb-compat-mode on/off which AFAIK is normally on but might be off. Does not matter providing everything works ;)

Looks like the RobA site is gone for good. You can still get the scripts via https://archive.org/web/ but might be worth someone making a copy of the files, for legacy purposes.


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 5:29 pm  (#146) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2661
Location: California
Is there an updated script for 2.10.32 gimp users who have windows systems?


Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 6:42 pm  (#147) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 4960
Location: Sydney Australia
I think I have posted this script here previously, and I am on Gimp 2.10.32 rev 1 and the script still works OK for me.


Attachments:
RMA_path_blend.scm [11.43 KiB]
Downloaded 42 times

_________________
Image

Respect should be offered freely but hard earned
Top
 Post subject: Re: Path Blend Script
PostPosted: Thu Sep 29, 2022 7:30 pm  (#148) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
I saved all his scripts from his old site. I'll post them to gimpscripts.net under a new tab.

The Wayback link is up under the Old Archive tab on GimpScripts.net, I'll eventually load all the files to the server soon.

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


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Sep 30, 2022 3:12 am  (#149) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
rich2005 wrote:
for info Ofnuts has a couple of plugins for rendering along a path(s) not the same but you can get some nice effects.


Another way is to:

- Define the two edges as paths
- Use my path-inbetweener to generate many intermediate paths (100, here)
- Use my ofn-stroke-fill-path to stroke each intermediate path using a color from a gradient

Attachment:
PathBlend.png
PathBlend.png [ 121.68 KiB | Viewed 972 times ]


This is somewhat faster than RobA's technique because RobA script loops along the length of the path, painting gradients, while my technique loops across the width, painting uniform lines.

_________________
Image


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Sep 30, 2022 7:44 am  (#150) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
@ofnuts Your method would also seem not to require the starting and ending paths to have equal numbers of nodes, no?

I remind that RobA's approach (v1.4) admitted the possibility of telling the script to take the starting value of the gradient from whatever color lay under the current point on the beginning path (as contrasted with being the same fixed color).

That bit is key to heightmap-generator fanboys like me and pegleg44.

Cheers~

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Sep 30, 2022 12:24 pm  (#151) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
gramp wrote:
@ofnuts Your method would also seem not to require the starting and ending paths to have equal numbers of nodes, no?


Unfortunately, path-inbetweener requires it so....

_________________
Image


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Oct 01, 2022 7:59 am  (#152) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
I pre-apologize for suggesting that path-in-betweener could be modified to adjust the fewer-noded path to have the same number as the more-noded one, before-hand.

Because as the great philosopher, Murphy, recorded among his famous Laws:
"Nothing is impossible for the one who will not be doing it."

Cheers, Of.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Oct 01, 2022 9:20 am  (#153) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
It could be modified, yes, it could be easily modified, less so.

Also the nodes tell the script what point in one path moves to what point in the other. In the example below, the bottom path is either linearly split to have its number nodes match the top path (what a script would do) or is split to somehow match the length division of the top path.

Attachment:
Paths.png
Paths.png [ 140.94 KiB | Viewed 846 times ]


Remember that you can always add nodes to a path by Ctrl-clicking a segment

_________________
Image


Top
Post new topic Reply to topic  [ 153 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group