It is currently Thu Jul 04, 2024 5:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 74 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 8:21 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
So far, all the python plugins that I've tried (5) work, but for some reason I can't get this one to work. I remember that sometimes you have to activate the executable bit on some python scripts using the chmod +x {name}. Get an error when I do that; don't think I should have to do this for Windows Python plugins (had to for a Linux Python recently with my Ubuntu VM). Anyway, any help would be appreciated. :)

http://gimpstuff.org/content/show.php/P ... tent=99483

_________________
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: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 9:12 pm  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I copied it and pasted it into a text editor, named it phrase-brush.py, and saved it to my desktop. I right-clicked the file, Properties > Permissions, and checked the box next to, Allow executing file as program. Then I copied it and pasted into my /.gimp-2.6/plug-ins folder.

I closed and re-opened GIMP and in File > Create, New brush with phrase appeared. I don't know how to use it.

This is in Linux.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 9:28 pm  (#3) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Ah! Now I see how it works. It makes an animated brush of a phrase. I used a gradient to color it.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 9:43 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
Guess if I really had too, I could use it in Ubuntu. lol

No right-click option in Windows unfortunately. Already tried rebooting Win7 but to no avail. Also tried renaming the file; that didn't work either. Not sure how to force it to be executable in Windows. Tried the chmod +x command but get syntax error issues. Oh well. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 9:50 pm  (#5) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Unfortunately I can't get it to run in Win7 on my laptop. Same thing with gmic. Don't know how to make them work with 64bit.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 9:57 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
O:

Couldn't we save the file as executable and then have Lyle upload our saved executable file?

P.S. G'MIC works on my Win 7 64 bit desktop.

http://www.mahvin.com/images/phrase_brush.py.zip

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


Last edited by mahvin on Thu Nov 18, 2010 10:05 pm, edited 1 time in total.

Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 10:01 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
I use 32-bit GIMP because of all the issues with 64-bit GIMP in Windows O. Did some more searches, but haven't found a solution. I did inferr that the executable bit should not be an issue w.r.t. Windows, but of course who really knows. Still, it would be a cool plugin to get to work in Windows. Might try that Mahvin (I have Ubuntu VM so I should be able to do just that and save it and transfer the file via shares. Will let you know if that works. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 10:05 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I uploaded the zip, the link is in my last post

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


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 10:20 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
OK; I'm in Ubuntu and your zip file works Mahvin (didn't try the original). Does not work in Windows though for whatever reason. :)


Attachments:
sample.png
sample.png [ 16.71 KiB | Viewed 3452 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 10:27 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
As a side note, I guess I could transfer the created brush from Ubuntu to Win7 if I needed to. lol

My gut is telling me that it has something to do with how GIMP refers to paths since that's what the Python plugin refers to for setting up the parameters. Looking at some of the python plugins that work, they don't include a paths definition. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 10:42 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Ohhh, I should have looked at that in the .py file. I'll grab the path reference from one of my linux converted to windows file, real quick.

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


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 11:02 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Copy the following line in place after brush dir= (exactly as it is) the older line is deprecated. I actually have a tutorial about this on my blog.

"%s/.gimp-%s/brushes" % (os.path.expanduser('~'), get_gimp_version())

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


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 11:27 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
OK Mahvin; this is what I typed; still no work. Maybe the GIMP Path needs changing too, but again, I'm no programmer. :)

BRUSH_DIR = "%s/.gimp-%s/brushes" % (os.path.expanduser('~'), get_gimp_version())

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Thu Nov 18, 2010 11:38 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Yeah, I am currently testing a revamped GIMP path. I didn't want to post it if it didn't work.

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


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 12:20 am  (#15) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Epic fail for me. Someone with superior Python skills needs to take a look at this.

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


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 12:48 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
Yeah; I did a lot of searching too but to no avail. Did fine a few cool Python plugins at Sourceforge though (Magic Mesh) and Magic Mesh's result looks nice. Still, maybe a Python Guru here can help us out to get this one to work in Windows as good as it does in Linux. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 3:01 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I am going to try and get this to work in XP.

Image

Worked for me by just placing it in the user/gimp 2.0/plug-ins folder and restarting gimp
No problems with Windows XP here.

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: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 11:39 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
Not sure why it's not showing up for me Rod; did the same thing. Even rebooted my computer but to no avail. Maybe it's a Win7 issue. Oh well. Again, if I really have to have a text brush created using it, I can always do it in Ubuntu. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 1:16 pm  (#19) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i think your gut points in the right direction...Win can't care less about permission or security (if not to flash messages so terroristic to be useless ) but has its own way to wrote paths

maybe just invert the "/" or"\" in the path could solve

_________________
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: Python Phrase brush install help needed.
PostPosted: Fri Nov 19, 2010 1:28 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
That would be worth a try PC, but Rod got it to work in XP, and the slash does look to be in the right direction. Maybe it's how it handles to OS indentification scheme that's causing a coniption. Oh well. Maybe somebody else here that uses Win7 64-bit with 32-bit GIMP can help me. :)

_________________
Lyle

Psalm 109:8

Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) I was able to install Gimp with Python-Fu ( SOLVED )

2

No new posts Attachment(s) UPDATE - I was able to install Gimp with Python-Fu ( SOLVED )

0

No new posts GIMP 2.10 doesn't install my python plug-ins

1

No new posts Attachment(s) GTK help needed text in black needed

5

No new posts Convert GIMP plugin from Python 2 to Python 3

4



* Login  



Powered by phpBB3 © phpBB Group