Re: [Gimp-user] batch mode debugging

2007-09-10 Thread Sven Neumann
Hi,

On Sun, 2007-09-09 at 15:28 -0400,
[EMAIL PROTECTED] wrote:

 The dialogs for Script-fus are generated and handled by the GIMP.  
 Unlike plug-ins and other scripting languages, there is nothing that a  
 Script-fu script has to do to interact with the user -- the parameters  
 are defined by the dialogs before the 'script-fu-*' function is  
 evaluated. This is why the function is considered non-interactive.

That is not quite right. The dialog is generated by the Script-Fu
extension and the extension should only show the interactive dialog when
the script is called in interactive mode.

The problem here is that if you call a Script-Fu script from another
Script-Fu script, then you are not doing a PDB procedure call. The
called script is evaluated directly by the Scheme interpreter. This may
lead to a somewhat different calling convention. I haven't looked at it
in detail and can't tell you exactly what this means for the run-mode.


Sven


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


Re: [Gimp-user] Gimp 2.4.0rc1 Sample Points tab - what is it?

2007-09-10 Thread Sven Neumann
Hi,

On Tue, 2007-08-28 at 11:00 +0200, Marco Ciampa wrote:

 1) if you create more than 4 sample points, how can you handle the other
 than 1-4 points (5 and more)?

You can't. The Sample Points feature is not quite finished yet. But we
decided to leave it in for 2.4 nevertheless because it is already useful
in its current state.


Sven


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


[Gimp-user] shadow

2007-09-10 Thread Bettina Lechner
hi!

I am wondering what the option allow resizing at the filter light  shadow
 shadow allows. 

any ideas? (and yes, I searched for it at doc.gimp.org - even in english and
german ;-))

joy,
tina

-- 

newhouse -  new media
Bettina Karena Lechner
neue str 16, 2565 neuhaus
austria

mobil: +43 660 46 25 0 25
tel.: +43 26 74 878 72
fax: +43 2674 878 81
mailto:[EMAIL PROTECTED]
www.newhouse.at
---
Der Anfang ist die Hälfte des Ganzen.
Aristoteles (384 - 322 v. Chr)


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


Re: [Gimp-user] batch mode debugging

2007-09-10 Thread Milos Prudek

 (set! drawable (car (gimp-image-get-active-layer image)))

Yes! And it works. Thank you very much. This will save many hours of manual 
work.

Thank you for the debugging tip. It is quite discouraging when the computer 
tells you your program is wrong, and I am not going to tell you what is 
wrong with it, not even a small hint.

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


[Gimp-user] How to define Script-Fu widgets?

2007-09-10 Thread Milos Prudek
How are the various GUI widgets defined in Script-Fu?

For instance Script-Fu/Decor/Fuzzy border: 
- Border size GUI widget is a number with arrows. 
- Granularity GUI widget is a slider with arrows. 

I look at the fuzzyborder.scm file. These GUI widgets seem to be defined 
in (script-fu-register):

SF-ADJUSTMENT _Border size'(16 1 300 1 10 0 1)
SF-ADJUSTMENT _Granularity (1 is Low) '(4 1 16 0.25 5 2 0)

They are both SF-ADJUSTMENT, so why is the first GUI a number with arrows 
and the second is slider with arrows? And what do the numbers (16 1 300 1 
10 0 1) mean?

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


Re: [Gimp-user] How to define Script-Fu widgets?

2007-09-10 Thread saulgoode
Quoting Milos Prudek [EMAIL PROTECTED]:

 How are the various GUI widgets defined in Script-Fu?

 For instance Script-Fu/Decor/Fuzzy border:
 - Border size GUI widget is a number with arrows.
 - Granularity GUI widget is a slider with arrows.

 I look at the fuzzyborder.scm file. These GUI widgets seem to be defined
 in (script-fu-register):

 SF-ADJUSTMENT _Border size'(16 1 300 1 10 0 1)
 SF-ADJUSTMENT _Granularity (1 is Low) '(4 1 16 0.25 5 2 0)

 They are both SF-ADJUSTMENT, so why is the first GUI a number with arrows
 and the second is slider with arrows? And what do the numbers (16 1 300 1
 10 0 1) mean?

The last argument determines the widget type. The list of numbers  
corresponds to (respectively):

'initial_value' -- starting value (subsequent calls will use  
LAST_VALUE instead)
'minimum' -- lowest value possible
'maximum' -- highest value possible
'step_size' -- amount to increment/decrement if clicked with mouse button #1
'page_size' -- amount to increment/decrement if clicked with mouse button #2
'digits' -- the number of decimal places: 0 = integers, 1 = tenths, 2  
= hundredths, ...
'widget_type' -- 0 = slider, 1 = spinbutton


@ Sven Neumann, thanks for clarifying how the interaction mode works.

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


Re: [Gimp-user] How to define Script-Fu widgets?

2007-09-10 Thread Milos Prudek
 The last argument determines the widget type. The list of numbers
 corresponds to (respectively):

Wow. Thank you. Is this documented somewhere?

Should not it be published at http://www.gimp.org/tutorials/Basic_Scheme/ ?

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


Re: [Gimp-user] batch mode debugging

2007-09-10 Thread Greg
--- Milos Prudek [EMAIL PROTECTED] wrote:
 Thank you for the debugging tip. It is quite discouraging when the
 computer tells you your program is wrong, and I am not going to tell

 you what is wrong with it, not even a small hint.

As a Winblows user, you get used to it.  :)


   

Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] batch mode debugging

2007-09-10 Thread Simon Budig
Sven Neumann ([EMAIL PROTECTED]) wrote:
 The problem here is that if you call a Script-Fu script from another
 Script-Fu script, then you are not doing a PDB procedure call. The
 called script is evaluated directly by the Scheme interpreter. This may
 lead to a somewhat different calling convention. I haven't looked at it
 in detail and can't tell you exactly what this means for the run-mode.

Since script-fu parses all the scripts into memory and invokes the
respective functions from there it basically means, that the function
gets invoked as defined, i.e. without the run mode parameter.

If you want to pass the run mode parameter you can use the function used
internally by script-fu:

  (gimp-proc-db-call script-fu-sphere RUN-INTERACTIVE 100 100 1
 '(255 0 0) '(0 0 255))

I hope this helps,
Simon
-- 
  [EMAIL PROTECTED]  http://simon.budig.de/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Feathering edges

2007-09-10 Thread Thomas Holland




Hi all,

I am new to Gimp.

How do I feather the edges of a photo? I want to soften the edges.



-- 


  

  
   Thom Holland, Lab Tech
   Phone: x55434 /+ 1 858-526-9434
Sun Microsystems, Inc.
MailStop: USAN09-106
SAN09/1600
9525 Towne Centre Drive
San Diego, CA 92121
http://sw.west/~th84068/
  


  

  


The Word of the Day is:
jape \JAYP\  verb
*1 : to say or do something jokingly or mockingly 
 2 : to make mocking fun of

Example sentence:
 At the convention, the younger gamers japed at the low-tech graphics of the early consoles on display.



Re: [Gimp-user] How to define Script-Fu widgets?

2007-09-10 Thread Sven Neumann
Hi,

On Mon, 2007-09-10 at 15:23 +0200, Milos Prudek wrote:

 Wow. Thank you. Is this documented somewhere?

It is documented in test-sphere.scm which is distributed with the source
code. It would be nice if someone turned this into a document that we
could publish on gimp.org.


Sven


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


Re: [Gimp-user] shadow

2007-09-10 Thread Sven Neumann
Hi,

On Mon, 2007-09-10 at 11:30 +0200, Bettina Lechner wrote:

 I am wondering what the option allow resizing at the filter light  shadow
  shadow allows. 

If enabled, the script will resize the image if that is needed to make
place for the shadow.


Sven


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


Re: [Gimp-user] Feathering edges

2007-09-10 Thread Sven Neumann
Hi,

On Mon, 2007-09-10 at 09:26 -0700, Thomas Holland wrote:

 How do I feather the edges of a photo?  I want to soften the edges.

Take a look at http://gimp.org/tutorials/Quickmask/


Sven

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


Re: [Gimp-user] Feathering edges

2007-09-10 Thread vt
Do not send HTML formated e-mails. At least to mailing lists.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user