Re: [Gimp-developer] Gimp-Python with no ui? (external script)
Manish Singh wrote: By the way, I thought the batch mode only understood scheme, so it would make the whole thing even more complicated. One line of scheme to call your python script won't increase the complexity appreciably. The problem is that if i have huge lists and complex python objects in my external scripts, and i want to access them in the gimp's python-fu script, i have to pass them through scheme, and thus it means converting back and forth. I will try to adapt with pickle if it works. If you want something better, why don't you contribute it? I would make a mess, since i'm not really a good programmer (plus i don't know anything about gimp's internal structure or python's...). Ministeyr ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
Carol Spears wrote: i asked because i put instructions of how to do this online. i have a crontab that runs gimp. that being said, it has been running for so long now, i have no idea what sort of mess it is making, but it was all so easy that it was a pleasure to put the instructions online. Well, i don't know if that is exactly what i meant, but i would still be grateful if you could give me the url to that document. Thanks. Ministeyr ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
On Sat, Apr 01, 2006 at 03:01:31PM +0200, Ministeyr wrote: Carol Spears wrote: i asked because i put instructions of how to do this online. i have a crontab that runs gimp. that being said, it has been running for so long now, i have no idea what sort of mess it is making, but it was all so easy that it was a pleasure to put the instructions online. Well, i don't know if that is exactly what i meant, but i would still be grateful if you could give me the url to that document. Thanks. http://carol.gimp.org/gimp/scripting/routines.html#shell carol ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
On Sat, Apr 01, 2006 at 02:58:12PM +0200, Ministeyr wrote: Manish Singh wrote: By the way, I thought the batch mode only understood scheme, so it would make the whole thing even more complicated. One line of scheme to call your python script won't increase the complexity appreciably. The problem is that if i have huge lists and complex python objects in my external scripts, and i want to access them in the gimp's python-fu script, i have to pass them through scheme, and thus it means converting back and forth. I will try to adapt with pickle if it works. You could serialize them to a temporary file, or choose from a number of IPC methods python ships with. No need to pass stuff like that over the command line. How were you planning on doing it via your original though of having having a gimp_noui anyway? The issues are more or less the same. -Yosh ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
On Thu, Mar 30, 2006 at 03:31:12PM +0200, Ministeyr wrote: I need to make an external Python administration script, wich occasionnally uses gimp functionnality (especially to convert to/from xcf files). Is there a way to use this functionnality without starting the ui? I need something like that: import gimp_noui as gimp gimp.startgimp()#start the gimp in background process pdb.file_load(whatever...) #do something here... pdb.file_save(whatever...) gimp.stopgimp() Thanks. what os will you be using this on? carol ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
what os will you be using this on? carol I'm developping it for and under a Debian-testing system (on amd k7), and plan to use it possibly also on an Ubuntu Linux. I won't need windows support. Ministeyr ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Gimp-Python with no ui? (external script)
On Thu, Mar 30, 2006 at 07:59:08PM +0200, Ministeyr wrote: Just write a pygimp script normally, and call it via gimp's batch mode. -Yosh I would prefer another solution, since I have some processing to do in the external script and possibly a bunch of data to transfer back and forth, so it would make the script quite complex to have to use the batch interpreter. Why would it? By the way, I thought the batch mode only understood scheme, so it would make the whole thing even more complicated. One line of scheme to call your python script won't increase the complexity appreciably. I hope there is a simpler solution possible. Well, it's kind of hacky yes, but it's not *complex*. If you want something better, why don't you contribute it? -Yosh ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer