It is currently Tue Jun 09, 2026 8:13 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15  Next
Author Message
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 3:59 pm  (#241) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12775
Delaboratory saves tif results as 16-bit; I use the export to GIMP option, then close the image and Delaboratory and tolerate the myriad of error pop ups (i.e., just close them; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 4:34 pm  (#242) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1937
Location: Missouri
It took me a little time to get it working but now that it is I have my 5 most favorite applications in one. This is the greatest invention since whipped cream. I'm not sure if I should have done it or not but each of the programs had a # in front of the line and the only way I could get them all to work was to remove them. A most sincere thanks for making this. I wish I knew more about writing code. I used to do a lot of it in the early 80s then got lazy, to my disgrace.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 7:14 pm  (#243) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
ShellOut is awesome. :)
Sorry i didn't mention the version of mine was updated.That may have saved some confusion.My apologies folks.
Glad you all got it working though.

And a big thanks to Rob A!

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Jun 19, 2012 10:08 pm  (#244) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1937
Location: Missouri
It works now and I know how to add more to it if I want to and that's what really matters. I feel like a two timer though. For years I've had paint.net on my computers and have kept it updated and full of filters but have never used it much. Now because of shellout I'll use it more often because as much as I'm dedicated to gimp I must admit paint.net has some neat features. Has shelllout turned me into a sellout? Sorry, tacky but I couldn't help myself.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Jun 20, 2012 2:12 pm  (#245) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Gms9810 wrote:
It works now and I know how to add more to it if I want to and that's what really matters. I feel like a two timer though. For years I've had paint.net on my computers and have kept it updated and full of filters but have never used it much. Now because of shellout I'll use it more often because as much as I'm dedicated to gimp I must admit paint.net has some neat features. Has shelllout turned me into a sellout? Sorry, tacky but I couldn't help myself.

Well i for one have quite a few less desktop icons in my RocketDock menu because i now run them all through primarily ShellOut. So i wouldn't say your a sellout at all.If anything you use the program more because its at your fingertips through Gimp. That's the way i look at it anyways. :)

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Sun Aug 05, 2012 4:28 pm  (#246) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 70
I use windows 7, 64 bit and gimp 2.8.

I am having trouble getting it to run. I used the shellout version .7. I changed the locations where I have XNview and Inkscape installed as follows:

["XNView", "\"C:\Program Files (x86)\\xnview.exe\"", "png"],
#["Inkscape", "\"C:\Program Files (x86)\\Inkscape\\inkscape.exe\"", "png"],

This is the error I get in gimp after choosing filters-> shellout-> new from visible:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Grits\.gimp-2.8\plug-ins\ShellOut.py", line 128, in plugin_main
child = subprocess.Popen(args, shell=False)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Program Files\GIMP 2\Python\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Thanks for any suggestions as to what I am doing wrong.

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Aug 07, 2012 9:35 am  (#247) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
You need to escape all the backslashes in windows. SO instead of
"XNView", "\"C:\Program Files (x86)\\xnview.exe\"", "png",


you need:
"XNView", "\"C:\\Program Files (x86)\\xnview.exe\"", "png",


But I doubt you installed XNView directly under the program files directory, as it normally creates a directory to hold the file, so maybe it should really be
"XNView", "\"C:\\Program Files (x86)\\xnview\\XnView.exe\"", "png",


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Aug 08, 2012 6:31 pm  (#248) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 70
Thank you for your help, but I still am getting errors. Yesterday, I uninstalled/reinstalled xnview into the program files folder, instead of program files (x86). That didn't seem to help any.

I attached a screenshot of what I got when I changed line 53 to your text.

I also tried this line:
["XNView", "C:\Program Files\XnView\XnView.exe\"", "png"],

I was then able to get the full name of Xnview to show in the gimp shellout popup box menu, instead of just getting X in the box. I also added # to the beginning of each line in the script for the programs I don't have.

This is the error I got after doing that:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Lisa\.gimp-2.8\plug-ins\ShellOut.py", line 123, in plugin_main
args = shlex.split(command)
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 279, in split
return list(lex)
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 269, in next
token = self.get_token()
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 96, in get_token
raw = self.read_token()
File "C:\Program Files\GIMP 2\Python\lib\shlex.py", line 172, in read_token
raise ValueError, "No closing quotation"
ValueError: No closing quotation

I am determined to keep trying to get this to work, but am mystified at what to change. Thanks for any help you can offer.


Attachments:
shellout error 8-8-12.jpg
shellout error 8-8-12.jpg [ 113.32 KiB | Viewed 11508 times ]

_________________
Image
Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Aug 09, 2012 2:45 am  (#249) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
can someone give me a simple explanation of what shellout is please???


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Aug 09, 2012 4:45 am  (#250) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12775
Shellout sends your current layer to a completely external program (like XNView for instance) where you can do some additonal manipulation using various filters that are normally not available in GIMP. Once you save the file using the external program and close it, the result is placed back into GIMP. Not all programs are this seamless (case in point, sometimes you have to browse search the file like i usually to if I use Shellout with Inkscape), but XNView is 100% compatible with Shellout; indeed, Shellout use to be only for XnView (too lazy to look up Shellout's old name; lol). You have to have Python GIMP installed in order to use Shellout Akky. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Aug 09, 2012 4:51 am  (#251) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
No worries there Lyle. :) Pauline uses McGimp which has Python built in.


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Aug 09, 2012 7:23 am  (#252) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
not sure I would have a use for it in any cae then but thanks lyle


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 11:14 am  (#253) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
Hi folks,

I'm trying to get ShellOut working on Xubuntu 12.10(Gimp 2.8.2), and I just can't seem to get the script to write the temporary file.

If anyone has gotten ShellOut working on any flavor of Ubuntu I'd like to see how you changed the script to use xnview under wine.

Thanks,
adam933


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 11:17 am  (#254) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
I do have it and I use Fedora and I tried to run it under wine and nothing happened so I gave up on it. I was still able to run a PS script though wine without it somehow.

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 11:58 am  (#255) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
Thanks Molly.

I'll keep hammering at the script.
It shouldn't be impossible.

adam933


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 1:03 pm  (#256) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
This script was written by Rob Antonishen and I haven't seen him on line lately, but I am sure someone on here will be able to help you.

_________________
Image


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 8:56 pm  (#257) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Maybe a problem of permission ?

Quote:
and I just can't seem to get the script to write the temporary file.


other scripts may write the temporary file ?
And you gave all needed permission to the script (you may check/modify from the file propriety )

And is required wine ,at least to use with xnview and ps filter

BTW i have crossover instead then wine, it should work also with crossover i must try, i didn't yet

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Dec 12, 2012 11:37 pm  (#258) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
Thanks for replying PC.

Yes, I think I have the permissions OK - ShellOut.py has root permission and is executable. But I'll check again to make sure.

Thanks again,
adam933


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Dec 13, 2012 3:40 pm  (#259) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
molly wrote:
This script was written by Rob Antonishen and I haven't seen him on line lately, but I am sure someone on here will be able to help you.


yeah - I've been busy IRL.

Sorry - I don't have any linux distros loaded up with wine on them at the moment (I blew away Ubuntu and went with Mint)... so I don;t think I could look for a while - is anyone else using it on Linux?

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Thu Dec 13, 2012 4:24 pm  (#260) 
Offline
GimpChat Member

Joined: Dec 10, 2012
Posts: 32
Thanks Rob.

No rush - I'm happy to wait.
Thanks for checking in.

adam933


Top
Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group