Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Python Fu calling a Scheme Fu temporary procedure

Mon Oct 31, 2016 8:56 pm

Right now the Scheme Fu returns nothing when viewing it in procedure browser.
It creates a new image.

How do i make Scheme Fu script return 2 variables (image and display) so that that my
Python-Fu can call it (the scheme fu).
and then delete display and image created by the scheme fu?

Thanks in advance.

Re: Python Fu calling a Scheme Fu temporary procedure

Tue Nov 01, 2016 12:54 am

I guess there isn't a way (not that i could find) so I translated the scheme-fu to python-fu so that it can return values.

Re: Python Fu calling a Scheme Fu temporary procedure

Tue Nov 01, 2016 1:16 am

Certainly a definite decision, but a scheme filter does return values, normally the last defined variable (somewhere in the gimp-chat you find another topic on this, and SaulGoode is a master on that).

Something different Tin, have a look at Lyle's topic on perspective brush...

Re: Python Fu calling a Scheme Fu temporary procedure

Tue Nov 01, 2016 1:24 am

i just read the thread now,
i am thinking...

Re: Python Fu calling a Scheme Fu temporary procedure

Tue Nov 01, 2016 9:05 am

dinasset wrote:Certainly a definite decision, but a scheme filter does return values, normally the last defined variable (somewhere in the gimp-chat you find another topic on this, and SaulGoode is a master on that).


Yes, but this will be ignored if the registration information doesn't mention returned values...

If you are just looking for a newly created image, as far as I can tell the last created image is gimp.image_list()[0]. That should be enough if you are not running several scripts in parallel.

Re: Python Fu calling a Scheme Fu temporary procedure

Tue Nov 01, 2016 2:33 pm

having the image, is there away to grab the display associated with it though?
because in order to delete image, i have to delete the display first.
Just want to know for future reference.
I already translated the script to python (returning image and display)..python rules.
Post a reply