It is currently Fri Apr 26, 2024 5:12 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 94 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 5:32 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
produces results like this tutorial Lightning like Zeus tutorial : http://gimpchat.com/viewtopic.php?f=23&t=14475

1. You need this following file unzipped and put it in Gimp's plug-ins folder.
Attachment:
vector-to-line-stroke.zip [1.71 KiB]
Downloaded 568 times


2. Then this file inside Gimp's scripts folder.
Attachment:
Lightning.scm [10.11 KiB]
Downloaded 446 times

The above version might conflict with an existing lightning.scm go HERE for non-conflicting version

3. Then you need to have an active path defined, and run script available under Script-Fu/Lightning like Zeus...
And it'll create 5 layers for your animation.

4. Additional script that merges lightning with your selected background image:http://gimpchat.com/viewtopic.php?f=9&t=14478&p=199454#p1994547
Or this version colorifies that lets you choose color instead of hue:http://gimpchat.com/viewtopic.php?f=9&t=14478&p=199592#p199592


You'll be given options like below
Image


Example results:
Opened path
Image


Closed paths
Image

_________________
TinT


Last edited by trandoductin on Tue Aug 30, 2016 8:50 pm, edited 3 times in total.

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: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 5:42 pm  (#2) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
I don't know how you managed to script this, especially that quickly. Kind of appropriate that I'm first to download it.

What does the "Levels gamma" input do?

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 5:45 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Gamma can be used to sharpen the lightning ..the lower the gamma the sharper it is but if it's too sharp then it doesn't have as much glow.

_________________
TinT


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 5:47 pm  (#4) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Gotcha. Looks like it still needs a bit of manual touchup afterwards. But I'm anxious to see how much time it saves.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:00 pm  (#5) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
That's weird, it isn't showing up in the menu. I opened the script in my text editor and it looks like it's registered right. But it isn't under Script-Fu or anywhere else.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:32 pm  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Sasquatch wrote:
That's weird, it isn't showing up in the menu. I opened the script in my text editor and it looks like it's registered right. But it isn't under Script-Fu or anywhere else.

I'm having the same issue.
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:34 pm  (#7) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
restart GIMP, maybe? because of the extra .py script it uses.

_________________
TinT


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:42 pm  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
restart GIMP, maybe? because of the extra .py script it uses.

The script is still a no show. :(
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:50 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 198
Working for me, great script :clap , thanks Trandoductin and Sasquatch, quick play as I should be somewhere else :hehe

Attachment:
tr.gif
tr.gif [ 423.15 KiB | Viewed 10335 times ]


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 6:54 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Wallace wrote:
trandoductin wrote:
restart GIMP, maybe? because of the extra .py script it uses.

The script is still a no show. :(
[ Image ]

did you extract .py file into plug-ins folder? not scripts. two files go in different folders. I don't know what else could be wrong.

_________________
TinT


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:09 pm  (#11) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
did you extract .py file into plug-ins folder? not scripts. two files go in different folders. I don't know what else could be wrong.

Yes,
I have the script and the plug-in. :(
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:13 pm  (#12) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Same here. Got the plug-in with all my other py-fu stuff and the script with all the other scm stuff. I even tried editing the scm with a cut/paste from another scm to change the menu location in case there was some syntax problem with the menu line of the scm. No luck.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:16 pm  (#13) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
i am really stuck here... not sure why that is.

_________________
TinT


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:24 pm  (#14) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
I'm just glad it isn't only me. Could it maybe be a version issue? Wallace runs Windows, I run Linux, so it isn't an OS issue.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:41 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 198
A long shot perhaps, but if by accident the name in the define (here lightning) is already in use in another script, and Wallace has numerous, one of the scripts won’t show.

(define (script-fu-lightning


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:46 pm  (#16) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Steve wrote:
A long shot perhaps, but if by accident the name in the define (here lightning) is already in use in another script, and Wallace has numerous, one of them won’t show.

(define (script-fu-lightning

Actually, I bet you're dead on. I had to rename another "Lightning" script to install this one. But I didn't think about the registry issue. And I just successfully installed the script on this other computer, which doesn't have any added scripts yet. Seems the problem has been solved.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:47 pm  (#17) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Steve wrote:
A long shot perhaps, but if by accident the name in the define (here lightning) is already in use in another script, and Wallace has numerous, one of the scripts won’t show.

(define (script-fu-lightning

Yes I checked that.
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:48 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Script-Fu-lightning already exists http://registry.gimp.org/node/153
maybe high-voltage would be a better name

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 7:56 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 198
Wallace wrote:
Steve wrote:
A long shot perhaps, but if by accident the name in the define (here lightning) is already in use in another script, and Wallace has numerous, one of the scripts won’t show.

(define (script-fu-lightning

Yes I checked that.
[ Image ]


Just noticed there is also difference-clouds2

(define (script-fu-difference-clouds2

unlikely but ?


Top
 Post subject: Re: Lightning like Zeus (script).
PostPosted: Sun Aug 28, 2016 8:00 pm  (#20) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Strange. I wonder why it works on one of my computers but not the other if it isn't a conflict with another "lightning" script.

Tran, does the script apply the blur to the mask as well? The edges of the result are a bit more well-defined than I would like. Other than that, I think the script does a fine job of duplicating the tutorial. I do wish there were some way of knowing what the hue setting would do ahead of time. I guess you have to kind of experiment with that a bit to see what number gives you the color you're after.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
Post new topic Reply to topic  [ 94 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Quick and Dirty Lightning Object

2

No new posts Attachment(s) Eagle head stroked with lightning brush.

10

No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) Cannot run test script-fu script via console

7

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3



* Login  



Powered by phpBB3 © phpBB Group