Post all Gimp scripts and script writing questions here
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.
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.
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...
Tue Nov 01, 2016 1:24 am
i just read the thread now,
i am thinking...
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.
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.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.