GIMP Chat
http://gimpchat.com/

Python Phrase brush install help needed.
http://gimpchat.com/viewtopic.php?f=8&t=735
Page 1 of 4

Author:  lylejk [ Thu Nov 18, 2010 8:21 pm ]
Post subject:  Python Phrase brush install help needed.

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

Author:  Oregonian [ Thu Nov 18, 2010 9:12 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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.

Author:  Oregonian [ Thu Nov 18, 2010 9:28 pm ]
Post subject:  Re: Python Phrase brush install help needed.

Ah! Now I see how it works. It makes an animated brush of a phrase. I used a gradient to color it.

Image

Author:  lylejk [ Thu Nov 18, 2010 9:43 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Author:  Oregonian [ Thu Nov 18, 2010 9:50 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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.

Author:  mahvin [ Thu Nov 18, 2010 9:57 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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

Author:  lylejk [ Thu Nov 18, 2010 10:01 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Author:  mahvin [ Thu Nov 18, 2010 10:05 pm ]
Post subject:  Re: Python Phrase brush install help needed.

I uploaded the zip, the link is in my last post

Author:  lylejk [ Thu Nov 18, 2010 10:20 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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 3455 times ]

Author:  lylejk [ Thu Nov 18, 2010 10:27 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Author:  mahvin [ Thu Nov 18, 2010 10:42 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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.

Author:  mahvin [ Thu Nov 18, 2010 11:02 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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())

Author:  lylejk [ Thu Nov 18, 2010 11:27 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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())

Author:  mahvin [ Thu Nov 18, 2010 11:38 pm ]
Post subject:  Re: Python Phrase brush install help needed.

Yeah, I am currently testing a revamped GIMP path. I didn't want to post it if it didn't work.

Author:  mahvin [ Fri Nov 19, 2010 12:20 am ]
Post subject:  Re: Python Phrase brush install help needed.

Epic fail for me. Someone with superior Python skills needs to take a look at this.

Author:  lylejk [ Fri Nov 19, 2010 12:48 am ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Author:  Rod [ Fri Nov 19, 2010 3:01 am ]
Post subject:  Re: Python Phrase brush install help needed.

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

Author:  lylejk [ Fri Nov 19, 2010 11:39 am ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Author:  PhotoComix [ Fri Nov 19, 2010 1:16 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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

Author:  lylejk [ Fri Nov 19, 2010 1:28 pm ]
Post subject:  Re: Python Phrase brush install help needed.

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. :)

Page 1 of 4 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/