Quoting Kevin Cozens <ke...@ve3syb.ca>:

> Roger Penn wrote:
>> The included script worked just fine before upgrading from 2.2 to 2.6. I've
> [snip]
>> (define (BulletinBoard_Blue_Header inText inFilename)
>> (let* (
>>     (drawable -1)
>>     (text inText)
>>     (filename inFilename)
>>     (gimp-context-set-foreground '(41 11 169))
>>     (img (car (gimp-file-load 1
>> "C:\\userfiles\\admin\\images\\GIMP\\bulletin.gif" "bulletin.gif")))
>>     (gimp-image-convert-rgb img)
>
> Your script is calling "gimp-image-convert-rgb" in the variable bindings
> part of the let*. It needs to be in the body of the let*. Move the line to
> just before or after the call to "gimp-selection-none".

I would add that likewise the script is attempting to call  
'gimp-context-set-foreground', 'gimp-hue-saturation' and  
(conditionally) 'gimp-layer-scale' within the binding block. The  
actual effect of this is that new, local variables are created and  
assigned the values of the ensuing expressions. The line that attempts  
to conditionally call 'gimp-layer-scale' is particularly problematic  
because it is redefining "if" (though only for the duration of the  
let*).

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to