It is currently Wed Apr 24, 2024 1:59 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: 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: 2246
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: 4739
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: 2246
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 subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 1:31 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
That's a good idea Mahvin.

_________________
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 5:50 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
OK Rod. I don't have GIMP Portable. Did consolidate all the dlls and the Python script into it's own directory and tried to double-click on the Python script, but get a quick DOS menu then it disappears. I'm downloading GIMP Portable just in case it requires that too. I'll edit this (or add) if success or failure afterwards (only getting 70K/s download speed so it's taking a few more minutes then I would like). :)

edit:

I didn't realize you still had to install GIMP Portable before you can use it. I'll just stick with the GIMP launch thingy that I did when I started this thread. :)

edit:

OK; Kevin's version does work and can be called in GIMP with all the caveats that Rod mentioned. Still cool though. Thanks Kevin. :)

_________________
Lyle

Psalm 109:8

Image


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

Joined: May 16, 2010
Posts: 14709
Location: USA
You shouldn't need gimp portable, as i do not have it.
If it is opening a quick dos window and closing again it means you don't have all the required dll files in the folder with the python file.Are you sure you placed all the dll's i posted earlier in there?

_________________
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 6:42 pm  (#24) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
It runs pretty good in Linux as a standalone, the only problem I have is the random button doesn't seem to work (all the time). This is the error:

/home/mahvin/Ghost Diagram/ghost-diagrams-0.8.py:1050: DeprecationWarning: catching of string exceptions is deprecated
  except "repeat":
Traceback (most recent call last):
  File "/home/mahvin/Ghost Diagram/ghost-diagrams-0.8.py", line 613, in <lambda>
    random_button.connect('clicked', lambda widget: self.random())
  File "/home/mahvin/Ghost Diagram/ghost-diagrams-0.8.py", line 1047, in random
    if a in all and b not in all: raise "repeat"
TypeError: exceptions must be old-style classes or derived from BaseException, not str


A couple of new interesting presets to add to your list:

"'212121', ' 1 2 '",
"'F Aa ', 'c Aa '",

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


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

Joined: Sep 24, 2010
Posts: 12516
Rod wrote:
You shouldn't need gimp portable, as i do not have it.
If it is opening a quick dos window and closing again it means you don't have all the required dll files in the folder with the python file.Are you sure you placed all the dll's i posted earlier in there?


I triple checked Rod. No problem anyway since Kevin's edit works. I just wish it would output seamless textures but too chicken (and lazy) to email Paul (busy he must be) to add that capability. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Mon Mar 07, 2011 8:18 pm  (#26) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
I emailed him, (never hurts to ask).

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


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Tue Mar 08, 2011 4:46 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
No it doesn't! :)

_________________
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: Wed Mar 09, 2011 8:42 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Sorry for opening this up again. lol

Just found another cool preset ('cCc C '). Even harder to make it seamless (but I did). Of course I used the Python version since I like the inside line effect. Then the hard part (made it seamless). Click on the image for it's Deviant (yup; another SSP; lol). :)

Image

edit:

Also another (yes, it's seamless. It's based on 'aA aA '); decided to host this one here, but still an SSP. ;)

:)


Attachments:
lattice.png
lattice.png [ 33.71 KiB | Viewed 1969 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Thu Mar 10, 2011 1:15 am  (#29) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
I don't know why, but presets I find in the javascript version don't play nice in the Python version. How weird is that?

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


Top
 Post subject: Re: Ghost Diagrams Python Script.
PostPosted: Thu Mar 10, 2011 1:30 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Yeah; and you get different results. I think, based on reading the 70MByte thesis he posted, that the XHTML version is closest to what he wanted the result to be. :)

_________________
Lyle

Psalm 109:8

Image


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