HOME | DD
Published: 2007-12-11 21:53:06 +0000 UTC; Views: 33872; Favourites: 120; Downloads: 10460
Redirect to original
Description
EDIT October 9, 2008: This script has been tested in GIMP 2.6 (the newest stable version of GIMP) and it works fine with no modifications.Based on suggestions by Insanity-Prevails (insanity-prevails.deviantart.c⦠, I have modified the script to allow the layers to be merged if the user so desires. Thanks for the suggestions, IP!
This script is based on a tutorial presented by gimptalk.com member, lylejk. You can view the tutorial here: (www.gimptalk.com/forum/topic/P⦠.
Stop by and say "hi" to lylejk and tell him thanks for the great tutorial and allowing it to be put into script format.
The script takes an existing image's active layer and makes two copies: setting the Middle copy to Saturation and the Top copy to Value. The Original Layer is then filled with your choice of color. Gives a very dramatic effect and, depending on the image, somewhat resembles an Infrared Photograph.
Just download the scm file and place it in your GIMP scripts folder (ie....C
Then, go to the main GIMP window (not the image window) and choose the Xtns Menu > Script-FU > Refresh Scripts and it should appear in the Image Window under the Filters Menu > Decor > Power Toning....
This is my very first script so please be gentle!
Enjoy!
Art
Related content
Comments: 52
mimeenko [2011-07-18 13:41:08 +0000 UTC]
Hi Art (what a nice name)
I downloades your script but somehow, it doesn't work. When I try to refresh the script (in Script FU) I get an error message which says something like : failed on invalid imput arguments. Maybe it's no more available, I don't know. I've done everything like you explain but it doesn't want to work. Do you know what I can do????
Thanks a lot for your help
š: 0 ā©: 0
ecstaticbitch [2010-05-10 13:03:35 +0000 UTC]
Uhmmm....where exactly do you download it from? I can't see a file anywhere.
š: 0 ā©: 1
fence-post In reply to ecstaticbitch [2010-05-11 00:29:57 +0000 UTC]
Click on the download link (which is probably on the left side of your screen) and *hopefully* you'll either be given an option to open/save the file OR it will open up in your browser window as a bunch of text. If it opens as a bunch of text, that's really the script and you can click on File > Save As in the browser window and save it a text file, but give it an ".scm" extension. Save it to your GIMP scripts folder, which is somewhere like this: C:\Users\UserName\.gimp-2.6\scripts. If you still have trouble, let me know and I'll help you out.
Wonderful gallery you have! Gorgeous!
Art
š: 0 ā©: 1
ecstaticbitch In reply to fence-post [2010-05-15 04:11:50 +0000 UTC]
Thank you - sorry for my ignorance, i've never downloaded off deviantart before haha. I figured it out eventually
š: 0 ā©: 0
jRockstar11385 [2010-01-18 19:27:04 +0000 UTC]
What an awesome script. I love the effects, wonder what would happen if I try to use a gradient.....XD
š: 0 ā©: 0
xxNeko-Naminexx [2009-06-07 16:55:13 +0000 UTC]
im not sure when you mean "mail window to gimp" ._.
i kno this shounds stupid but can you tell me
š: 0 ā©: 1
fence-post In reply to xxNeko-Naminexx [2009-06-07 18:23:00 +0000 UTC]
I've looked through my post and the script itself and can't find that statement. Can you show me where I said that. I have no clue what it means. Sorry.
š: 0 ā©: 1
xxNeko-Naminexx In reply to fence-post [2009-06-07 20:26:20 +0000 UTC]
It's For Your Toning Script Here I Copied The Phrase For You... I Not Sure What This Means B/c I Would Like To Try This Out :3 (the first sentence is what im having issues with)
Then, go to the main GIMP window (not the image window) and choose the Xtns Menu > Script-FU > Refresh Scripts and it should appear in the Image Window under the Filters Menu > Decor > Power Toning....
sorry for the inconvience....
š: 0 ā©: 0
Kitafee [2009-01-04 14:35:03 +0000 UTC]
hey
i got gimp quite recently
its so confuzing XD
heh. what do you do with a script exactly?
and how can download and save it
its text?
thank you xxx
š: 0 ā©: 0
fence-post In reply to ubiquirk [2008-06-30 16:46:00 +0000 UTC]
Glad you like it! Thanks.
Art
š: 0 ā©: 0
Minutestocountdown [2008-05-31 03:26:00 +0000 UTC]
umm...when I tryied to download it, it just gave me a page with text...what should I do...
š: 0 ā©: 1
fence-post In reply to Minutestocountdown [2008-06-16 23:57:02 +0000 UTC]
The script is actually a text file, so that part is correct. Just save it to your desktop and then copy/paste it into your GIMP scripts folder. Let me know if you need additional help.
š: 0 ā©: 0
orachel [2008-04-27 20:42:35 +0000 UTC]
Love the look of this! I'm a total novice gimper, so praying I can make this work! GORGEOUS work!
š: 0 ā©: 1
fence-post In reply to orachel [2008-06-17 00:01:26 +0000 UTC]
Sorry for the delay in responding. I hope you were able to get it to work and it provided the look you were after. If not, thanks for trying it out and let me know if there's some way I can improve it.
Art
š: 0 ā©: 0
shadowwarior [2008-03-30 16:28:43 +0000 UTC]
This is really awesome, been looking for something like this
š: 0 ā©: 1
fence-post In reply to shadowwarior [2008-06-17 00:08:33 +0000 UTC]
Glad you liked it! Thanks!
š: 0 ā©: 0
fence-post In reply to henred5 [2007-12-26 02:32:24 +0000 UTC]
Let me know if you have any trouble with it.
Art
š: 0 ā©: 1
henred5 In reply to fence-post [2007-12-26 17:01:15 +0000 UTC]
No worries, it works perfectly. Thank you so much for putting this in a simple to use script.
š: 0 ā©: 1
LizetM [2007-12-22 01:22:01 +0000 UTC]
Very nice. I like. Will have to sue it in some icons and stuff.
š: 0 ā©: 1
surfing-ant [2007-12-16 08:59:45 +0000 UTC]
Whoa.
I don't use GIMP anymore since I had to learn PS and use it for school, but this script looks darn awesome.
You're such a GIMP guru, I've always thought so and long may it last
Keep being awesome, this script looks like it rocks
š: 0 ā©: 1
fence-post In reply to surfing-ant [2007-12-21 02:10:38 +0000 UTC]
Well, I don't know about "guru", but thank you for the kind words. I just really like learning new things and am too bull-headed to let anything beat me!
How is school going? What year are you in and what are you studying?
Have a great holidays!
Art
š: 0 ā©: 1
surfing-ant In reply to fence-post [2008-01-03 08:57:14 +0000 UTC]
Sorry for replying so late!
Actually I just finished my course (it was a one year diploma), the course was in Digital Media. Pretty much just web design...
So now I have to find a job! I'm excited to get one which I really like and can learn from... Fingers crossed!
My portfolio is here: [link] if you want to see what I got up to
š: 0 ā©: 1
fence-post In reply to surfing-ant [2008-06-17 00:19:22 +0000 UTC]
So sorry for the major delay in responding! My life has been crazy busy. Congrats on your diploma! Have you found the job you wanted?
Art
š: 0 ā©: 1
surfing-ant In reply to fence-post [2008-06-18 09:39:27 +0000 UTC]
Even better, found a job better than the one i wanted
No worries about the reply delay
š: 0 ā©: 1
fence-post In reply to surfing-ant [2008-06-26 00:35:46 +0000 UTC]
Congratulations! Glad you got a better one. Can't beat that!
š: 0 ā©: 0
Comicfan2000 [2007-12-14 17:21:28 +0000 UTC]
That is awesome fence, gotta give it a go this weekend.
Cheers,
Paul
š: 0 ā©: 1
fence-post In reply to Comicfan2000 [2007-12-21 02:13:51 +0000 UTC]
Have fun, but be careful with it....don't hurt yourself!
š: 0 ā©: 0
Insanity-Prevails [2007-12-12 16:46:45 +0000 UTC]
This is a nice first script. Installed it and tested it. Works nicely.
I have a suggestion though.
Add this to the script just after the let statement: (gimp-context-push). Then add this to the end before registering the script: (gimp-context-pop).
The current script changes the foreground colour and keeps it like that after the script has finished, which may not be what the user wants. Up to you of course, in case you feel it better to have the foreground colour changed for the user.
Also, a thought more than anything. What about an option that automatically merges the 3 layers together if the user asks for it?
Great first script anyway, and good with the comments. Looking forward to more scripting from you.
š: 0 ā©: 2
fence-post In reply to Insanity-Prevails [2007-12-12 22:54:32 +0000 UTC]
I may have misread you previous post....in re-reading it, I assume the context-pop is what resets everything back to default?
š: 0 ā©: 2
lifebtb In reply to fence-post [2007-12-15 18:16:44 +0000 UTC]
Former professional programmer here, thought I might offer a bit of explanation about the push/pop concept for future reference...
The terms "push" and "pop" are usually used in reference to something called a "stack". This is usually just a chunk of memory a program uses. The easiest way I know to describe it is this:
First, think of stack of plates like you might see in a cafeteria. Each plate represents something that needs to be done, or a single item or note on our to-do list. When you add an item to the list of things to be done it's exactly like adding a plate to the top of the stack in the cafeteria. That's called "pushing". You push a new plate onto the stack.
Now consider how you make a stack of plates smaller. Simple, you take a plate off the top. This is called "popping". When you are ready to do the next thing on your list of chores you pop the top plate off the stack and do whatever that plate represents.
How do you finish your chore list or get rid of the stack of plates? Keep popping plates off the top of it until it is gone.
It's really that simple of an idea.
Applied to this specific scenario, using "context-push" adds a plate that says "change the context of all statements after this to that of just the image I'm working with and not the global settings of the GIMP application". Every plate added to the stack above that is now in that limited context rather than the global one. So GIMP chugs along doing the stuff added to its stack of plates after that (which is really above that in terms of a physical stack of plates) until it has worked back down the stack to the plate that changed the context. Issuing the "context-pop" statement pops that plate back off the stack, and now the remaining plates that were below it are processed back in the global context.
Hope that helps. It's crystal clear to me, but I've been working with this stuff for over a decade... Personally I like to try to understand the underlying concept so the next time I encounter something similar I'll know what is going on and why. That was my goal here.
Have a great day!
- Steve
š: 0 ā©: 1
fence-post In reply to lifebtb [2007-12-16 18:48:57 +0000 UTC]
Excellent example, Steve! Thanks for taking the time to fill me/anyone else in on this subject. Makes perfect sense to me....just wish the GIMP developers could explain things in such easy terms. I'm sure they don't try to make it difficult, but for folks like me, it kinda comes across that way. You'd be very helpful as a GIMP developer.
Thanks again!
Art
š: 0 ā©: 1
lifebtb In reply to fence-post [2007-12-16 22:37:12 +0000 UTC]
No problem! Glad to help. I've thought about getting in on some GIMP development, actually. Might just do that one day.
š: 0 ā©: 1
fence-post In reply to lifebtb [2007-12-21 02:09:06 +0000 UTC]
Thanks again! Take care.
Art
š: 0 ā©: 0
Insanity-Prevails In reply to fence-post [2007-12-13 01:24:25 +0000 UTC]
Yeah. Basically, everything that is set between context-push and context-pop is done on a temporary basis. When context-pop comes around settings revert back to what they were before context-push was used.
So if my foreground colour was black it would still be black after running the script regardless of what colour I picked in the user input dialogue.
š: 0 ā©: 1
fence-post In reply to Insanity-Prevails [2007-12-13 13:50:27 +0000 UTC]
Thanks a bunch. I've added the push/pop and am working on the merging of the layers.
One last question: What does the gimp-displays-flush expression do? It's there in my script, but I don't really understand it.
Take care.
Art
š: 0 ā©: 1
Insanity-Prevails In reply to fence-post [2007-12-13 14:24:14 +0000 UTC]
Updates the display so that the changes made appear onscreen immediately.
Like, if you removed/commented out the command then there wouldn't be any visual change in the canvas window until the user made some kind of action, like clicking a layer.
š: 0 ā©: 1
fence-post In reply to Insanity-Prevails [2007-12-14 03:39:54 +0000 UTC]
Thanks a bunch! Now on to more scripts!
Art
š: 0 ā©: 0
fence-post In reply to Insanity-Prevails [2007-12-12 18:07:04 +0000 UTC]
Thanks for the fave on the script and excellent suggestions! I'll definitely add those changes in. I've seen the context-push/pop statements in yours/other scripts, but to be quite honest with you, I have no clue what they really do. I've read the comments in the Procedure Browser, but not being a programmer, the language confuses me. If you've got a good understanding of the statements, by all means, pass it my way.
BTW, do you use the Script-FU console while writing? I would have never been able to get through this one without it. I've finally figured out how to literally change an existing image right from there.
Thanks again!
Art
š: 0 ā©: 0
fence-post In reply to ajsk84life [2007-12-14 03:40:12 +0000 UTC]
Glad you like it, thanks!
Art
š: 0 ā©: 0
a2j3 [2007-12-12 01:48:22 +0000 UTC]
Great job Fence. You always do a wonderful job.
Regards
Jo
š: 0 ā©: 1
ClayOgre [2007-12-12 01:40:24 +0000 UTC]
Oh dear...lookout! fencepost has gotten into scripting! Run for your lives, no Gimper is safe!
hehe...
š: 0 ā©: 1
| Next =>
























