It is currently 22 May 2022, 07:43

• Featuring Members' Images •
Could be related to 'Map Gradient to All Layers Script by FencePost'
skinnyhouse
tim
gimpturkey
tim
animicule

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

Map Gradient to All Layers Script by FencePost

Share your Scheme Fu scripts for GIMP here
Tom
Forum Member
23rd Place
176 Post(s)

Map Gradient to All Layers Script by FencePost

Post#1 by Tom » 03 Oct 2018, 22:45


Is this script fixable ?
I was making a custom font, so it had 65 layers or so, and ran the Map Gradient to all layers script. It ran but didn't actually put the gradients in the layers.
So then I ran skinnyhouse's Custom Font Effects v3.
So now after running skinnyhouse's script I can run FencePost's Map Gradient to all layers script.
The gradients seem a little different, like the gold gradient looks green.
Is there another way to do this ?
The script is here https://www.deviantart.com/fence-post/a ... -154372695

tim
GL Blogger
1st Place
5822 Post(s)

Post#2 by tim » 03 Oct 2018, 23:38


did you try to run it through my GIMP10_constantize script to see if that fixes. Most likely it'll work as long as there is no logical change.

UPDATE: just downloaded fence-posts's script and it ran on fine on my GIMP 2.10.6 Linux Ubuntu so any error you get are most likely just (CAPITALIZED) constant errors which will likely be fixed by GIMP10 Constantize Plug-in
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4522 Post(s)

Post#3 by Pat625 » 05 Oct 2018, 21:49


Tin, would you please take a look at that Map Gradient to All Layers script again? I tried using your
Constantize Plug-in script but still could not get it to work. Just gave one color, no gradient. Thank you.

tim
GL Blogger
1st Place
5822 Post(s)

Post#4 by tim » 05 Oct 2018, 22:01


What's the error, I can't reproduce anything on my machine because my machine 2.10.6 runs fine with original script.

My machine produces gradient (active gradient) when I have start with layers of grayscale gradients.
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4522 Post(s)

Post#5 by Pat625 » 06 Oct 2018, 14:14


I did not get an error message. It ran, but only one solid color. No gradient.

tim
GL Blogger
1st Place
5822 Post(s)

Post#6 by tim » 06 Oct 2018, 14:46


@Pat625 ,
I don't know why that is for you.
It just calls plug_in_gradmap to each layer.
I don't know what the fix is.

But you could always work around this by using Run Code on Visible Layers
and using this code (after you've change active gradient that is).
pdb.plug_in_gradmap(image,layer)
aka Tin
World Food Program | Good Deeds Forum

         

Tom
Forum Member
23rd Place
176 Post(s)

Post#7 by Tom » 07 Oct 2018, 15:33


I guess maybe I don't know what mapping is.
I only get one color also, whether I use the script by Fencepost or Run Code on Visible Layers or even Gimps Map Gradient. I give up.

tim
GL Blogger
1st Place
5822 Post(s)

Post#8 by tim » 07 Oct 2018, 16:19


Did you start with image with some gradient or solid color if your image is solid color then it'll just stay solid color.
Gradient map only works if you have a variation in colors like a gradient.
For example, if you started with image of grayscale gradient, then by selecting a red gradient for example would turn your grayscale gradient into red gradient. However, if your image just has one color then it'll only be able to map one color from red gradient to your image so you'll get some solid red.
gradient_map.jpg
gradient_map.jpg # (25.77 KiB) Viewed 7881 times Thumbnail
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4522 Post(s)

Post#9 by Pat625 » 07 Oct 2018, 21:38


T in, I really do not remember which image I used when trying the script. I will check it again as that is a possibility.

Thank you again for your help.

Rod
Forum Member
64th Place
12 Post(s)

Post#10 by Rod » 07 Apr 2019, 18:23


Tom wrote:
03 Oct 2018, 22:45
Is this script fixable ?
I was making a custom font, so it had 65 layers or so, and ran the Map Gradient to all layers script. It ran but didn't actually put the gradients in the layers.
So then I ran skinnyhouse's Custom Font Effects v3.
So now after running skinnyhouse's script I can run FencePost's Map Gradient to all layers script.
The gradients seem a little different, like the gold gradient looks green.
Is there another way to do this ?
The script is here https://www.deviantart.com/fence-post/a ... -154372695
This script runs fine as long as you make all layers VISIBLE first. Then run the script and the widget will then load allowing you to choose your values.
Image


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 1 guest