Ask all general Gimp related questions here
Thu Nov 18, 2010 8:21 pm
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
Thu Nov 18, 2010 9:12 pm
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.
Thu Nov 18, 2010 9:28 pm
Ah! Now I see how it works. It makes an animated brush of a phrase. I used a gradient to color it.
Thu Nov 18, 2010 9:43 pm
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.
Thu Nov 18, 2010 9:50 pm
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.
Thu Nov 18, 2010 9:57 pm
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
Thu Nov 18, 2010 10:01 pm
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.
Thu Nov 18, 2010 10:05 pm
I uploaded the zip, the link is in my last post
Thu Nov 18, 2010 10:20 pm
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.
Thu Nov 18, 2010 10:27 pm
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.
Thu Nov 18, 2010 10:42 pm
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.
Thu Nov 18, 2010 11:02 pm
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())
Thu Nov 18, 2010 11:27 pm
OK Mahvin; this is what I typed; still no work. Maybe the GIMP Path needs changing too, but again, I'm no programmer.
![Smile :)](./images/smilies/icon_smile.gif)
- Code:
BRUSH_DIR = "%s/.gimp-%s/brushes" % (os.path.expanduser('~'), get_gimp_version())
Thu Nov 18, 2010 11:38 pm
Yeah, I am currently testing a revamped GIMP path. I didn't want to post it if it didn't work.
Fri Nov 19, 2010 12:20 am
Epic fail for me. Someone with superior Python skills needs to take a look at this.
Fri Nov 19, 2010 12:48 am
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.
Fri Nov 19, 2010 3:01 am
I am going to try and get this to work in XP.
![Image](http://www.gimpchat.com/files/196_brushfromtext.png)
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.
Fri Nov 19, 2010 11:39 am
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.
Fri Nov 19, 2010 1:16 pm
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
Fri Nov 19, 2010 1:28 pm
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.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.