GIMP Chat
http://gimpchat.com/

Python Fu calling a Scheme Fu temporary procedure
http://gimpchat.com/viewtopic.php?f=9&t=14844
Page 1 of 1

Author:  trandoductin [ Mon Oct 31, 2016 8:56 pm ]
Post subject:  Python Fu calling a Scheme Fu temporary procedure

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.

Author:  trandoductin [ Tue Nov 01, 2016 12:54 am ]
Post subject:  Re: Python Fu calling a Scheme Fu temporary procedure

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.

Author:  dinasset [ Tue Nov 01, 2016 1:16 am ]
Post subject:  Re: Python Fu calling a Scheme Fu temporary procedure

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...

Author:  trandoductin [ Tue Nov 01, 2016 1:24 am ]
Post subject:  Re: Python Fu calling a Scheme Fu temporary procedure

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

Author:  ofnuts [ Tue Nov 01, 2016 9:05 am ]
Post subject:  Re: Python Fu calling a Scheme Fu temporary procedure

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.

Author:  trandoductin [ Tue Nov 01, 2016 2:33 pm ]
Post subject:  Re: Python Fu calling a Scheme Fu temporary procedure

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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/