It is currently Mon Nov 09, 2026 2:30 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Jun 26, 2012 7:48 am  (#41) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I am getting the dreaded spinning beach ball of death with this script. Anyone using OSX have any hints? I set the width and depth to match my white space size, and it still bogs down. I know I never had a problem with this in Gimp 2.6.


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Jun 26, 2012 7:59 am  (#42) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
2-ton, did you open a new layer to run this script? You don't need to, just run the script at default or make your length and width a smaller size, I don't think that should make a difference. Anyway, other than that, it might be the same problem I had, it just wouldn't run in my Fedora until samj modified it.

_________________
Image


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Jun 26, 2012 8:43 am  (#43) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@2-ton

This script does not work with Gimp 2.6
You should download the latest version 1.0.2 which fixes the bug found by Molly


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Jun 26, 2012 8:51 am  (#44) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
This is my bokeh colors, very nice filter sanj.
Image

_________________
Image


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Jun 26, 2012 10:52 am  (#45) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Thank you samj

Image


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 30, 2013 6:33 am  (#46) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

I've updated this old script-fu to work with Gimp 2.8.4
Here's a screenshot in Linux.

File > Create > Patterns > Bokeh Effect Version 2...

Fichier > Créer > Motifs > Bokeh Effect Version 2...


Attachments:
Bokeh_Effect_By_Starlight86_V2_Gimp_2_8.zip [5.63 KiB]
Downloaded 200 times
copie_ecran_fedora18-64_vb.png
copie_ecran_fedora18-64_vb.png [ 869.99 KiB | Viewed 2976 times ]
Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 30, 2013 7:01 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
cool, thank you samj

Image

_________________
Image


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 30, 2013 11:24 am  (#48) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
This is really nice, samj. :tyspin I played around with the two gradient layers.

Image

Got the champagne glasses here.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 30, 2013 3:48 pm  (#49) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin Molly , Tchin-tchin :cheers Oregonian ( http://fr.wikipedia.org/wiki/Tchin-tchin )


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 30, 2013 4:10 pm  (#50) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
samj wrote:
:tyspin Molly , Tchin-tchin :cheers Oregonian ( http://fr.wikipedia.org/wiki/Tchin-tchin )
Wish I spoke French, samj, but the picture in wiki says it all. :yes

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Apr 02, 2013 9:14 am  (#51) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Tue Apr 02, 2013 9:55 am  (#52) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Oregonian

This is a very good idea to add text :)


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 2:41 am  (#53) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14237
Location: Spain, Aragón
Oregonian, I love your outcome. :clap

_________________
Image

Gimp 2.10.36 (samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 11:52 am  (#54) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
I don't think this script actually works properly with Gimp 2.8.14.

[The problem is that the script generates the bokeh effect using a series of randomly-sized brushes which it generates in Gimp's clipboard; now, prior to version 2.8.12, Gimp would automatically use the "native" size of the brush (ie. its size in the clipboard), but in version 2.8.12 onwards, the brush size has to be set explicitly with a call to the new Gimp function "gimp-context-set-brush-size".]

If you try running this script in Gimp 2.8.14 you'll probably just get bokeh of a fixed size equal to the size of whatever brush you happen to have selected at the time to invoking the script.

Has anybody else found this? If so, we''ll have to contact samj and ask her to update the script.


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 12:15 pm  (#55) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Exactly, Jontait2!
We hope Samj is reading from time to time Gimp-chat and can fix it.
Thanks Jontait2..

my attempt
Attachment:
EXACTLY.jpg
EXACTLY.jpg [ 126.96 KiB | Viewed 2081 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 1:07 pm  (#56) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@Dinasset:
Insert this code immediately after the call to "gimp-context-set-brush":
(if (defined? 'gimp-context-set-brush-size)
  (gimp-context-set-brush-size (+ 4 diametre_exterieur_bulle_a_creer_fonction))
)

You should find it works okay then.


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 1:37 pm  (#57) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
applied your patch, Jontait2; perfect, it works!
the new outcome (still leaving the defaults like in my previous test):
Attachment:
FIXED-THANKS.jpg
FIXED-THANKS.jpg [ 224.56 KiB | Viewed 2075 times ]


thanks a lot!

_________________
"Where am I ?"


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 3:28 pm  (#58) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 5090
Location: Sydney Australia
@Dinasset @Jontait2 - I tried (for the first time) editing the script as you suggested. It failed with " Error: ( : 1) eval: unbound variable: diametre_exterieur_bulle_a_creer_fonction " :oops:

This is what my change looked like:

(gimp-context-set-brush (list-ref (cadr (gimp-brushes-get-list "")) 0)) ; set brush to clipboard (first in list)
(if (defined? 'gimp-context-set-brush-size) (gimp-context-set-brush-size (+ 4 diametre_exterieur_bulle_a_creer_fonction)))


Its been many, many years since I programmed anything but SQL - any assistance you could provide will be appreciated

_________________
Image

Respect should be offered freely but hard earned


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 3:54 pm  (#59) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@OMG
I can't actually see anything wrong with that.
I would upload a modified script but we don't really want any more "hacks" floating around in Gimpville .. if samj could update her script some time in the near future it would be better for everyone to wait for an official release.
In the meanwhile if you upload a copy of your modified script (that didin't work) I'll have a look at it and see if I can help.


Top
 Post subject: Re: Script-Fu Bokeh Effect
PostPosted: Sat Mar 21, 2015 5:12 pm  (#60) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 5090
Location: Sydney Australia
@jontait2 - thanks; I deleted the modified script from GIMP but will make the changes against original again, try it out and if it fails, then I will post for your review as suggested.

EDIT - so if the code looks OK there must be another reason; the very old programmer in me started to emerge ... I had made and applied the changes in a new download of the script. It turns out that I already had another version of the script in place which I had apparently inserted last year!

So changes have now been applied to that original and all is well.

@jontait2 - thank you again for your offer of help

_________________
Image

Respect should be offered freely but hard earned


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group