It is currently Wed Apr 24, 2024 7:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 15  Next
Author Message
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 08, 2011 11:13 pm  (#111) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
MareroQ wrote:
Question about the next version
Will this be possible?


Done!

I've got a few in but commented out:
  ["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\""],
  ["MS Paint", "\"C:\\WINDOWS\\system32\\mspaint.exe\""],
  #["Deep Paint", "\"C:\\Program Files\\DeepPaint\\deeppaint.exe\""],
  #["Inkscape", "\"C:\\Program Files\\Inkscape\\inkscape.exe\""],
  #["PaintDOTNet", "\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\""],


Feel free to post up more here.

I've uploaded it as a zip since I can't upload a python file.
See this post for the latest version: viewtopic.php?f=9&t=970&p=17957#p17957

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Last edited by RobA on Tue Apr 05, 2011 2:57 pm, edited 1 time in total.

Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 08, 2011 11:48 pm  (#112) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12517
Excellent Rob. Just tried it with both XNView and Inkscape. What a cool way to add capabilities to GIMP. The world is GIMP's oyster with this python plugin. I wonder if it could be done in Script-fu (probably not). If so, it should be part of any future GIMP update. If not, then they should go ahead and automatically force python as part of GIMP so this plugin can be made an integral part of GIMP. Thanks again Rob. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 09, 2011 12:11 am  (#113) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Whoa, awesome stuff Rob! My question is since I am using this script primarily in Ubuntu, would there need to be a different call method for my version to include this shell out addition?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 09, 2011 4:45 am  (#114) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Fantastic! Thanks Rob!

:)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 09, 2011 7:18 am  (#115) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
mahvin wrote:
Whoa, awesome stuff Rob! My question is since I am using this script primarily in Ubuntu, would there need to be a different call method for my version to include this shell out addition?


You need to specify the correct commands.

If you are calling other linux programs then it should be trivial. If you are calling things under wine modification would be required.

The one example earlier in the thread should show what is needed to do that, I think.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 09, 2011 12:04 pm  (#116) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Everything works great in XP by the way! :)
Awesome addition to GIMP Rob.
I agree this should be a add on to Gimps master in my opinion.
Some kind of exe plug-in that you can add and save preset calls.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 09, 2011 9:51 pm  (#117) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
This is what I have working in Win 7! This is the sign of an awesome script! It's amazing anything works in 7, but all of the ones listed are working on mine!


Attachments:
Shellout.jpg
Shellout.jpg [ 47.27 KiB | Viewed 4055 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 10, 2011 7:53 am  (#118) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Superb!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 10, 2011 9:13 am  (#119) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
That look really cool
i want try to replace MS paint with DAP

_________________
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: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 10, 2011 9:36 am  (#120) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I kept MS Paint and added the extras that I wanted. Also, because my computer is running Win 7, PaintDotNET was in the "Program Files" path and MS Paint was in "Windows\system32" path. All of the others are in the "Program Files (x86)" path, because they are 32 bit programs.

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 2:29 pm  (#121) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
The highest tribute to RobA !!!
... and another question:
svg if not - it can java ?

http://www.flickr.com/groups/gimpusers/discuss/72157612967195386/

Why would it beautiful ?

Only for three examples:

Java Image Editor (for Warp Tool):
http://www.jhlabs.com/ie/index.html

Delineate:
http://delineate.sourceforge.net/

Artifical Mosaic Creator:
http://www.gz4.it/gdiblasi/pubblicazioni/mosaic.php


Attachments:
1 - Image Editor-Image Editor-Warp Tool 1.png
1 - Image Editor-Image Editor-Warp Tool 1.png [ 1.8 MiB | Viewed 1871 times ]
2 - Delineate.png
2 - Delineate.png [ 68.73 KiB | Viewed 1871 times ]
3 - Artifical Mosaic Creator.png
3 - Artifical Mosaic Creator.png [ 186.39 KiB | Viewed 1871 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 3:25 pm  (#122) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Yes - It can work for java.... but to work "best" the java jar must be able to take a command line parameter of the file to open (image editor does, the mosaic one doesn't seem to).

I put the jars in a folder C:\JavaJars\

You have to create a helper batch file.... here is one I called imageeditor.bat
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
C:\Program Files\Java\jre6\bin\java.exe -jar c:\JavaJars\ImageEditor.jar %1


Then add the following line to the ShellOut python file in the command list def:
  ["Java Image Editor", "\"C:\\JavaJars\\imageeditor.bat\""],


You can do the same for the mosaic, but you need to manually open the temp file then resave the temp file.... much less useful.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 10:41 pm  (#123) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I tried playing with the mosaic program directly and it works for everything but saving. I had to do screen captures and piece them together in Gimp. Is there something special to do to save files?

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 8:16 am  (#124) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Saves OK for me. I just clicked on the save icon (disk)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 9:12 am  (#125) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
This is what I get if I try and save anything! Win 7 suuuuuucccckkkkksssss!!!!


Attachments:
Error.jpg
Error.jpg [ 17.15 KiB | Viewed 1840 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 12:25 pm  (#126) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
So far it does not work for me - start batch file...(flash terminal window) ...and nothing.
Do I need to change the settings Advanced in Java Control Panel in Windows XP ???


Attachments:
Java.png
Java.png [ 22.46 KiB | Viewed 1831 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 2:41 pm  (#127) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
add a pause line in the batch file to see what the message is.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 3:50 pm  (#128) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Mistake appears in line:
Name 'C:\ Program' it is not recogniseable....

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:12 pm  (#129) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This same error comes up when i try to start Delineate or any other jar file.
Windows cannot find "C:\Program" i have no idea what it means.I even tried copying the folder Java out of Program Files to see if the long file name was the problem.Still didn't work.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:35 pm  (#130) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12517
I can't even get delineate to work in Win7 (haven't tried it in my VM XP yet). I can't get Autotrace to work in Win7 either but works fine in my VM XP. They recently updated Potrace to 64-bit which is cool, but Potrace, even the old version, works fine in Win7 so I have no idea what the issue is with Autotrace. Oh well. :)

_________________
Lyle

Psalm 109:8

Image


Top
Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 15  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Extended version ShellOut.

1

No new posts Attachment(s) How to call a python filter to run interactively

10



* Login  



Powered by phpBB3 © phpBB Group