RSS/Atom feed Twitter
Site is read-only, email is disabled

How are parasites represented in Script-Fu?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

How are parasites represented in Script-Fu? Gino D 03 Oct 15:49
  How are parasites represented in Script-Fu? Rob Antonishen 03 Oct 23:05
   How are parasites represented in Script-Fu? saulgoode@flashingtwelve.brickfilms.com 04 Oct 19:29
Gino D
2010-10-03 15:49:48 UTC (over 14 years ago)

How are parasites represented in Script-Fu?

Hi

Currently, what type of data should be used to enter a parasite as a parameter within those Script-fu procedures that handle such an object? By chance, can you give me any examples?

In order to figure it out, I have done several tests through the TinyScheme Console, from time to time using lists, vectors or strings, but none of them seems to fit.

Thanks in advance.

Rob Antonishen
2010-10-03 23:05:26 UTC (over 14 years ago)

How are parasites represented in Script-Fu?

On Sun, Oct 3, 2010 at 9:49 AM, Gino D wrote:

Hi

Currently, what type of data should be used to enter a parasite as a parameter within those Script-fu procedures that handle such an object? By chance, can you give me any examples?

AFAIK, only strings are supported and are passed in as a list. First parameter is the parasite name and the third is the string value. Not sure what the seconf parameter is but I always use the number 1:

(gimp-parasite-attach (list "parasite-name" 1 "parasite value"))

-Rob A>

-Rob A>

saulgoode@flashingtwelve.brickfilms.com
2010-10-04 19:29:54 UTC (over 14 years ago)

How are parasites represented in Script-Fu?

Quoting Rob Antonishen :

On Sun, Oct 3, 2010 at 9:49 AM, Gino D wrote:

Hi

Currently, what type of data should be used to enter a parasite as a parameter within those Script-fu procedures that handle such an object? By chance, can you give me any examples?

AFAIK, only strings are supported and are passed in as a list. First parameter is the parasite name and the third is the string value. Not sure what the seconf parameter is but I always use the number 1:

(gimp-parasite-attach (list "parasite-name" 1 "parasite value"))

The second parameter is the persistence/UNDOability flag. I covered the possible values in the following thread:

http://www.mail-archive.com/gimp-user%40lists.xcf.berkeley.edu/msg20099.html

For images and drawables, I would assume "persistence" may also be dependent upon the file being saved in XCF format (perhaps other formats permit parasite data to be attached as EXIF data but I wouldn't count on it). For vectors/paths, there would be the additional issue of whether the path itself was recoverable from the file.