Re: [Script-fu] How to convert a path to a selection?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12-03-01 01:01 AM, grafxuser wrote:
To achieve this I used the following code snippet
(let * ((v (gimp-vectors-import-from-file image filename FALSE
scale-to-imagesize))
(gimp-vectors-to-selection v 2 TRUE FALSE 0 0)
)
[snip]
All my attempts using the variable v directly or with various combinations
of car and cdr went wrong. Usually gimp-vectors-to-selection gave the error
'Invalid type for argument 1 to gimp-vectors-to-selection'. After all my
attempts I'm clueless now.

There is something strange going on here. One time when I tried it it worked when I changed the "v" reference in gimp-vectors-to-selection to "(car v)". It stopped working after a few tries.

Please bugzilla this so I can be reminded to investigate this further.

BTW, can I use the whole scheme language in Script-fu or are there any
restrictions?

There are some. Script-Fu mostly follows R4RS/R5RS. It doesn't support use of radix in number->string and string->number, or any of bignums, complex numbers, or any of the functions with *syntax* in the name (ie. syntax-rules or define-syntax) or other functions related to that. There are probably some other features not supported, or not fully compliant with the Scheme standard but I've already mentioned the main ones.

--
Cheers!

Kevin.

http://www.ve3syb.ca/           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                | powerful!"
#include <disclaimer/favourite> |             --Chris Hardwick
_______________________________________________
gimp-developer-list mailing list
gimp-developer-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gimp-developer-list


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux