Unstable Development Version commit a0811ff, for Windows.
I’m still working on my Python3 plug-in for GIMP 2.99. I create a Parasite with some uuid-based strings, and then try to attach it to an image object. The parasite data is unimportant. I just want to tag “some” open images with some data, so that I can tell which open images my plug-in is working on.
But attempts to attach parasites to images fail with an error. The error seems to be some kind of out-of-range issue.
Here is a snipit:
# See ...gimp_world/gimp/libgimpbase/gimpparasite.h
# and https://developer.gimp.org/api/3.0/libgimp/struct.Parasite.html
iterator_parasite_out = Gimp.Parasite(name=PatientIterator.PARASITE_ITERATION_NAME+"_"+str(uuid.uuid4()),
flags=Gimp.PARASITE_UNDOABLE,
data=self.job_uuid)
"""
I can't find parameter docs for image.attach_parasite(), I am guessing at the args.
See .../gimp/devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md
"""
"""
GIMP-Error: Calling error for procedure 'gimp-image-attach-parasite':
Procedure 'gimp-image-attach-parasite' has been called with value '<not transformable to string>' for
argument 'parasite' (#2, type GimpParasite). This value is out of range.
"""
image.attach_parasite(parasite=iterator_parasite_out) # Works on first image, then fails.
Tweaking the arguments to the Parasite constructor has not helped so far. I have tried making the names unique, the data unique, omitting the flag, etc. Am I doing something wrong, or might this be a bug?