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 Defun
(C) Copyright 1988-1994 Paradigm Associates Inc.

Script-Fu Console - Interactive Scheme Development

=> (gimp-version)
("2.2.8")

=> (gimp-image-list)
(1 #(1)#1"01")

=> (gimp-image-get-layers 1)
(1 #(2)#1"02")

=> (define image 1)
1

=> (define layer (car (gimp-image-get-active-layer image)))
2

=>  (cons-array 3 'byte)
#3"00"

=>  (gimp-drawable-set-pixel layer 1 1 3 (cons-array 3 'byte))
()
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Comic patterns for the Gimp?

2007-01-14 Thread Rachael H.
Hello! I'm a long time lurker here on the list.  I created a webcomic 
that I use the Gimp to create the bubbles and any other editing.  I'm 
curious if anyone has created their own patterns for word bubbles?  If 
so any one out there who is willing to share? 

I've been creating the bubbles by using the  "ellipital tool" to draw 
the  main circle, then the  "create and edit path" tool to make the 
point toward the character.  The hard part is filling the point part. 
Patterns are faster to work with than having to manually make the 
bubbles.  Wondering if anyone else has done this or maybe know some 
websites out there on creating word bubbles.

Here's a sample of what I'm working on:
http://www.kittytreats.org/coppermine/albums/userpics/10001/MT-sample.jpg

Thanks for reading!

___
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

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 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 ('cons-array' initializes to [0,0,0]) but the display
> has not been updated.

You also need to call gimp-drawable-update (and of course
gimp-displays-flush).


Sven


___
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 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)#1"02")
>
>   
> so,   #(2)#1"02"
> is a single entry array of the image ID ? 
> How should I interpret this sequence ? 
>   
Start by ignoring everything between the two close parentheses. There 
appears to be a bug in the output from the 2.2 version of GIMP. Using 
the current development version of GIMP I opened two files and asked for 
the image list. The result was
(2 #( 2 1 ))

The easy way to get the image ID when you need it as an argument for a 
command you want to run from the console mode is to look at the title 
bar of the image windows. Regardless of the file name, the filename (or 
the word 'Untitled' if it is a new image) shown in the title bar has 
text of the form "-x.y" at the end. The x part is the number that would 
be used as the image ID for that image.

> So I try another command; 
> => (gimp-image-height image)
> ERROR: unbound variable (errobj image)
>   
You need to use the actual image ID (ie. number) in the call or define 
image and set it to the desired number before you attempt to use it in a 
call to a GIMP function.

-- 

Cheers!

Kevin.

http://www.ve3syb.ca/   |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172  |"Same thing we always do, Pinkutus:
|  Try to assimilate the world!"
#include  |  -Pinkutus & the Borg 

___
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 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 problem?

Step #1: Create a new image with a white background (any size will do)
and zoom in to the upper left corner. 

Step #2: Open the Script-fu console and enter the following commands
(the number "1" in the first line assumes the new image is the first one
created after opening the GIMP; substitute the appropriate image-IDnum
from the window's titlebar if this is not the case):

  (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 ('cons-array' initializes to [0,0,0]) but the display
has not been updated.

Step #3: Enter the following line in the console:

  (gimp-displays-flush)

Note that the display is not updated -- this is somewhat anomalous (but
then Script-fu is not often used to paint on a pixel-by-pixel basis).

Step #4: Hide and then unhide the layer by toggling its "eyeball" in the
Layers window. At this point the projection is updated to reflect that
the pixel at [1,1] has been painted black.


"It is amazing what you can accomplish if you do 
not care who gets the credit." -- Harry S. Truman

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


[Gimp-user] Archive search tool?

2007-01-14 Thread Stephen Moss
Is there a search tool for the archived postings on this list?

Thanks
Stephen
___
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 Sven Neumann
Hi,

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'. The set-pixel command does not register
> with the UNDO history (it might be problematic to UNDO a few million
> pixel ops) and therefore you must manually force an update to the
> display to see the change (I would recommend hiding-and-unhiding the layer).

If that is true, then this is a bug and needs to be fixed. Can you
provide a test script that illustrates the problem?


Sven


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