 |
| GimpChat Member |
 |
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 ?"
|
|