It is currently Wed Sep 30, 2026 6:37 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Mon Oct 31, 2016 8:56 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4558
Location: Canada
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.

_________________
Image
Visualize your and others dreams coming true.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Tue Nov 01, 2016 12:54 am  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4558
Location: Canada
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.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Tue Nov 01, 2016 1:16 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
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...

_________________
"Where am I ?"


Top
 Post subject: Re: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Tue Nov 01, 2016 1:24 am  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4558
Location: Canada
i just read the thread now,
i am thinking...

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Tue Nov 01, 2016 9:05 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
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.

_________________
Image


Top
 Post subject: Re: Python Fu calling a Scheme Fu temporary procedure
PostPosted: Tue Nov 01, 2016 2:33 pm  (#6) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4558
Location: Canada
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.

_________________
Image
Visualize your and others dreams coming true.


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group