Re: [Gimp-user] script-FU console query

2007-01-14 Thread Saul Goode
Sven Neuman wrote: On Sat, 2007-01-13 at 20:33 -0800, Saul Goode wrote: Note that you will see no change in the display; even if you were to perform a 'gimp-displays-flush'. If that is true, then this is a bug and needs to be fixed. Can you provide a test script that illustrates the

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Kevin Cozens
Adam wrote: Like in the following, which the Procedure Browser says should be; num_images INT32 The number of Images open image_ids INT32ARRAY The list of images currently open = (gimp-image-list) (1 #(2)#102) so, #(2)#102 is a single entry array of the image ID ? How

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Sven Neumann
Hi, On Sun, 2007-01-14 at 12:24 -0800, Saul Goode wrote: (define image 1) (define layer (car (gimp-image-get-active-layer image))) (gimp-drawable-set-pixel layer 1 1 3 (cons-array 3 'byte)) Note that at this point, the pixel at location x=1, y=1 has internally been painted BLACK

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Adam
Thanks Kevin. Understood. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] script-FU console query

2007-01-14 Thread Adam
Just tried, and set-pixel works for me using the Saul test method. Yes, I had to toggle the 'eyeball' to get it to appear - yet to try gimp-drawable-update / gimp-displays-flush. Thanks, gentlemen, for clearing my original 'image' and 'drawable' query. Welcome to SIOD, Scheme In One

[Gimp-user] script-FU console query

2007-01-13 Thread Adam
Am using Gimp on Linux, and can run scripts from ./gimp-2.2/scripts but using the script-FU Console and its Procedure Browser I have trouble with. I'm assumimg operations within the Console are interactive with the currently loaded image(s) or xcf. Simple commands work, using

Re: [Gimp-user] script-FU console query

2007-01-13 Thread Saul Goode
I will do my best to explain some things. Simple commands work, using 'Apply' from the Procedure Browser screen, like; = (gimp-version) (2.2.8) Note that the return value is a LIST containing the string 2.2.8. All PDB functions return a LIST of items even if that list only contains one

Re: [Gimp-user] script-FU console query

2007-01-13 Thread Saul Goode
In my response, I had a cut-n-paste error in the last code-segment. The line: (gimp-drawable-set-pixel drawable 1 1 4 (color-as-bytes red blue green alpha)) should be changed to: (gimp-drawable-set-pixel drawable x-coord y-coord 4 (color-as-bytes red blue green alpha)) The 4 in the line