It is currently Sat Apr 20, 2024 4:44 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Ghost Diagrams Python Script.
PostPosted: Sun Mar 06, 2011 11:51 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
I found a cool Python Script from the author of Resynthesizer. The weird thing about this script is that it isn't a GIMP Python plugin but heavily requires GTK and other GIMP components and the only way I could get it to work is to place it in GIMP's Plugin directory and then it will only run when launching GIMP (GIMP won't finish launching until you finish using the filter; lol). I can't figure out how to run it using the Python console unfortunately, but maybe you gurus can. It can create pretty cool patterns imo. I put it in the GIMP Scripts and Plugins thread since it does require GIMP to work (but again, I could only get it to work when launching GIMP; how weird is that). I made it a seamless texture by using Mehdi's Kaleidoscope filter. :)

Image

Click here for this image's Deviant. :)

_________________
Lyle

Psalm 109:8

Image


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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 8:31 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I like how it gives you the svg information. :)
Pretty cool.

Thanks for sharing it Lyle.

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 8:47 am  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
nice you always digg cool apps thank to sharing
i see here a online version http://www.logarithmic.net/ghost.xhtml
seems more handy then run the script at loading time, maybe has some limits that i didn't notice ?

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 9:19 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
This is interesting! I like the effect! I will try and find a way to have it run like any other python script! I haven't seen how to save SVG files, but I will play with that too!

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 9:22 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
The link for the online version doesn't work for me.

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 9:26 am  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
check again! http://www.logarithmic.net/ghost.xhtml

Maybe you have some security thingy blocking execution of script form the browser ?
Or the page didn't load ?

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 9:33 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
When I click on it, it tries to download a file? I'll try updating my browser.

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 9:37 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Yeah; I had the same issue with XP; just went ahead and downloaded the file and then opened it up in Win7 (IE supports XHTML). I do like the ability to export SVG with the web based version, but it doesn't give the center lines like the Python version (which I sort of like for some reason). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 10:16 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
If you place the python file in a separate folder with a copy of all the dll files in Gimps bin folder you can run Ghost Diagrams as a stand alone. :)

Dunno how to get it to run in Gimps menus without changing a bunch of the script itself.
Example
Image

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 10:20 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I would also try and remove a dll at a time to see exactly which ones are actually needed to run it.
Create a folder named Ghost Diagrams on your desktop
Copy all the Gimp/bin folders dll files to it -copy the python file ghost diagrams to it.
Double click the python file the program will run
Close the program and move one of the dll files to the desktop - reopen the python file and see if it works - if it does delete the exra dll file you removed.
Keep doing this until you find all the required dll files it needs to run.
Now just move the entire folder to your programs directory and create a shortcut to the python file.

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 10:40 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Okay these are the required dll files to run the program - these have to be in the same folder as Ghost-Diagrams python file.

Image

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 10:49 am  (#12) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I had a very quick go at getting it to launch from Gimp, although you're probably better off using it stand-alone. I've attached a zipped version (again, why can't we attach python scripts ?)

It needs someone with actual knowledge to tell me how to get it to work without popping up an unnecessary prompt for filename and layer. Conceivably it might be possible to draw directly onto a gimp layer, or at least grab the image from the stand-alone and put it back into Gimp.


Attachments:
ghost-diagrams-0.8-gimp.zip [10.22 KiB]
Downloaded 149 times

_________________
Kevin
Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 10:52 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
To get the SVG info you need to save the online version as a page on your desktop - then just run it in your browser


Image

my website server link - full program
http://simply-signage.com/Ghost/GHOST.xhtml

Thanks for the Gimp version

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 11:49 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
The filter sets itself as "Contributed" in the image window menu.I already have one "contributed" small c.So if you have this as i do change the name to a small c and the filter will open with your same "contributed" menu listing.
Other wise the filter will be created in a separate menu named the same just with a capital C. :)
Change this
"<Image>/Contributed/Ghost",
To this instead
"<Image>/contributed/Ghost",

Unfortunately i do not believe you can open an image into Ghost Diagrams dialog.
You can save from it but i do not see anywhere to import an existing image. :)
You can call the program as long as you have 1 layer created without the program throwing the error.
I wonder if it's possible to save the image as a temp file and import it back into Gimp via the python module?

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 12:17 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2241
Location: Poland
Very interesting - thanks !
Lyle - only a real artist may to come up with a way to start - I admire the ingenuity.
I tried first by Your rule, but now - I just click and it works (without the Gimp nor an additional folder with the dll ) - i guess I have more luck (XP Home) - unfortunately, I do not know why.
It is unfortunate that no version Javascript/SVG for download.

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 12:20 pm  (#16) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
Actually it's not a Gimp plug-in... it is started by Gimp if you put it in the plug-in directory because Gimp will blindly run anything executable it finds there (this is used to let the pug-ins register to Gimp). On Linux it runs as an independent application. I suspect that its only relationship with Gimp on Windows is that it also needs GTK support, that is provided free of charge if run in the Gimp environment.

_________________
Image


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 12:38 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2241
Location: Poland
You're right! It works for me by c: \ Program Files \ Gtk +

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 12:39 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Cool info Rod; still, don't really plan on running the Python that often, so when I do, I'll just copy it in my GIMP Plugins folder and launch GIMP. lol

The XHTML file can be saved and run locally so long as your browser supports XHTML. Win7's IE 9 does. I guess so would Firefox. Still, I like the Python result with the inside blacklines better for whatever reason. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 1:17 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I just threw it in it's own folder with those needed dll files, placed it in my portable apps directory, and created a shortcut to it on RocketDock.That way i can create a cool looking icon for it in Inkscape. :)

I also found if you open it via Gimp -you can then open FastStone Capture - capture a rectangle area,when the image opens in FastStones capture window - copy it and paste it in Gimps image window.

_________________
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: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 1:24 pm  (#20) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Word to the wise:

Instead of saving the javascript version as a desktop link (that may one day disappear from the internet) save it as a file. But make sure you save the "entire content" of the xhtml (do not save it as a link). And do not save the file just by clicking "save file as", as sometimes it fails to associate the web content according to the actual source information in the xhtml, and running it sometimes will fail. Instead, (using Firefox: recommended) open the source page, select Edit - All, then save the copy of the source to your folder (you can keep the same name for it, if you want). And now you will have a standalone javascript version to use and not have to worry about the website going down or going away.

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


Top
Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Just brainstorm with diagrams and hack it out

5

No new posts .py script not showing under Python-Fu

3

No new posts Attachment(s) My first Python Script for Gimp

7

No new posts Attachment(s) Learning to do first Python script

6

No new posts Does anyone have script fu and python plugins that work on 2.99.19?

1



* Login  



Powered by phpBB3 © phpBB Group