Re: [Gimp-developer] script-fu problem in 2.6

2008-12-17 Thread Luis A. Florit
saulgo...@flashingtwelve.brickfilms.com wrote: > > Perhaps we need to add gimp-layear-has-mask then. Until then you could > > use gimp-plugin-set-pdb-error-handler to take over the error handling in > > order to suppress the warning. > > I haven't been following this discussion that closely; howev

Re: [Gimp-developer] how to start?

2008-12-17 Thread JirkaS
Tobias Jakobs-2 wrote: > > On Wed, Dec 17, 2008 at 1:31 PM, JirkaS wrote: >> >> Hi everybody - I'm sw developer "enthusiast" and would like to try put my >> hands on GIMP. I worked as C and C++ developer for several years, but >> mostly >> on Windows (Unix only occasionally during my universit

Re: [Gimp-developer] Strange Error

2008-12-17 Thread Kevin Cozens
Pablo Yaggi wrote: > (if (= (car (gimp-drawable-is-rgb image)) FALSE) > (gimp-image-convert-rgb image) > ) The above code is checking the type of a drawable and using this information to decide whether you need to convert an image. If you want to convert the whole image to RGB only if it is not

Re: [Gimp-developer] SF-TOGGLE type?

2008-12-17 Thread Pablo Yaggi
Thank's a lot, I fixed it getting the active-layer for the image and passing it to -is-rgb. On Wednesday 17 December 2008 15:44:12 saulgo...@flashingtwelve.brickfilms.com wrote: > You have been using TRUE and FALSE correctly. The problem with Pablo's > script is that he passing the 'image' variab

Re: [Gimp-developer] SF-TOGGLE type?

2008-12-17 Thread saulgoode
You have been using TRUE and FALSE correctly. The problem with Pablo's script is that he passing the 'image' variable to 'gimp-drawable-is-rgb'. Presumably his script does not generate an error because he is executing his script on the first image he opened thus the imageID is "1" -- which

Re: [Gimp-developer] how to start?

2008-12-17 Thread Tobias Jakobs
On Wed, Dec 17, 2008 at 1:31 PM, JirkaS wrote: > > Hi everybody - I'm sw developer "enthusiast" and would like to try put my > hands on GIMP. I worked as C and C++ developer for several years, but mostly > on Windows (Unix only occasionally during my university time - and that's > history folks).

[Gimp-developer] SF-TOGGLE type?

2008-12-17 Thread Rob Antonishen
Should SF-TOGGLE be evaluated as a boolean or int in a scheme script? I have been using (if (= inToggle TRUE) (do-true) (do-false)) where inToggle is a toggle (check box) parameter, Because (if inToggle (do-true) (do-false)) always returns as true. -Rob A. On 12/17/08, Pablo Yaggi wrote: > W

[Gimp-developer] Register ENUMS

2008-12-17 Thread Pablo Yaggi
I can't find anywhere how to register enums in script-fu, is it possible ? I need to create a SF-ENUM with my own types, but first I need to define them according to documentation, Best Regards Pablo ___ Gimp-developer mailing list Gimp-developer@lists.X

Re: [Gimp-developer] how to start?

2008-12-17 Thread Torsten Neuer
Hello, > I installed Ubuntu 8.10 on my laptop and would like to give it try, but I > couldn’t find a way to start. I tried to read developer.gimp.org FAQ, but > it is very short describing where to get source code, how to produce build, > what build tool I need to use, how to check out files, how

[Gimp-developer] Strange Error

2008-12-17 Thread Pablo Yaggi
Working with gimp 2.6 this segment of codes (if (= (car (gimp-drawable-is-rgb image)) FALSE) (gimp-image-convert-rgb image) ) gives me this error Error while executing script-fu-mirror-table: Error: Procedure execution of gimp-image-conv

[Gimp-developer] how to start?

2008-12-17 Thread JirkaS
Hi everybody - I'm sw developer "enthusiast" and would like to try put my hands on GIMP. I worked as C and C++ developer for several years, but mostly on Windows (Unix only occasionally during my university time - and that's history folks). I'm working with GIMP for several years - just simple edi