It is currently Thu Jul 04, 2024 5:10 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: 4003
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.

_________________
TinT


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

_________________
TinT


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: 14816
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: 4003
Location: Canada
i just read the thread now,
i am thinking...

_________________
TinT


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: 4756
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: 4003
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.

_________________
TinT


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Python calling G'MIC filter? (Solved)

4

No new posts Calling GIMP Plug-in From Command Line - on Windows

0

No new posts Attachment(s) how to automate the procedure?

14

No new posts Attachment(s) check if the procedure is correctly done?

6

No new posts Attachment(s) Procedure Browser Crashes

4



* Login  



Powered by phpBB3 © phpBB Group