On Wed, Sep 20, 2006 at 06:03:33PM +0200, Nicolas MAUFRAIS wrote: > On Wed, Sep 20, 2006 at 09:06:57AM +0200, Sven Neumann wrote: > > It would help if you showed us the full script. From the snippets you > > posted so far, I can only guess that you misunderstood the concept of > > variable declaration in Script-Fu. > > > > > > Sven > > I changed some things, but here it is: > > http://www.europephoto.com/info/bordure-titre-new.scm > > The functions do not work when I try to use the variables... :-/ > > Thank you. > > Nicolas.
I really do not understand why the variables are taken from my script-fu parameters window, and there's still an error: Error while executing (script-fu-titre 1 2 "Texte" 150 "FleurishScript Ultra-Light" 1 66 478) ERROR: Invalid type for argument 3 to gimp_text_fontname Here's the gimp-text-fontname function I use: (gimp-floating-sel-anchor (car (gimp-text-fontname img -1 position_x position_y text 0 TRUE size PIXELS font))) The third argument is position_x I defined my function like this: (define (script-fu-titre text size font border position_x position_y) What are the first and second variables? 1 and 2 ? Where do they come from??? SF-IMAGE "Image" 0 SF-DRAWABLE "Drawable" 0 SF-STRING _"Texte" "Texte" SF-ADJUSTMENT _"Taille police (pixels)" '(150 2 1000 1 10 0 1) SF-FONT _"Police" "FleurishScript Ultra-Light" SF-VALUE _"Epaisseur bordure" "1" SF-VALUE _"Position X" "66" SF-VALUE _"Position Y" "478") Is it image and drawable? Damn, Script-fu is driving me crazy !!!!! All I need is to automate some editing operations!!!! Nicolas. _______________________________________________ Gimp-user mailing list [email protected] https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
