It is currently Sat Sep 12, 2026 5:44 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: parameter in a .scm script defined as a gimp function
PostPosted: Thu Sep 10, 2015 3:39 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level



I'm playing with a gimp .scm script (not written by me, only modified a bit) where instead of setting a precisely defined brush (name etc) as parameter of SF-BRUSH I prefer to use the currently active (context) brush.
If I place SF-BRUSH "Brush Name" (gimp-context-get-brush) as parameter, the script works when called the first time taking the currently active brush: fine!
But if I later interactively change the active brush (by clicking on the displayed active brush and setting another one as active) then I call for a secod time that script it uses still the previously active brush.
Only if I use the browse capability of the parameter I can change the brush also for the script use.
Hence my hypothesis :
- a .scm script interprets and actualizes the parameter when loaded, then no more
Is this correct?
It's just a curiosity....
thanks

edit: if I use "Filters/Script-Fu/Refresh scripts" the script is forced to re-actualize the parameter and uses the new active brush; reasonable once learned the behaviour....

_________________
"Where am I ?"


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: parameter in a .scm script defined as a gimp function
PostPosted: Thu Sep 10, 2015 3:48 pm  (#2) 
Online
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4540
Location: Canada
i think that's the right behavior.
If you change it then it is set and always default to that value, unless you refresh the scripts..yeah

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: parameter in a .scm script defined as a gimp function
PostPosted: Thu Sep 10, 2015 3:53 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
OK, thanks, I just wanted to be sure of the behaviour...

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group