It is currently Wed May 08, 2024 6:04 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:08 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
The script works for me only with python 2.6.No matter what version of Gimp :noiseblower
Image

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:21 pm  (#32) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
pogogogo wrote:
The script works for me only with python 2.6.No matter what version of Gimp

What does it say on python 2.7?

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:27 pm  (#33) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I am using Gimp-2.6.12 in Linux Fedora 16

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:53 pm  (#34) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Is there anyone using Windows that can make the script work?

Otherwise can one try to change line 28 to:
debug=False

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:55 pm  (#35) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
molly wrote:
I am using Gimp-2.6.12 in Linux Fedora 16

Can you start Gimp from a terminal session, and see if you get any messages in the terminal session when the script runs?

I can try but I never did that before so someone will have to tell me how to do it. I have only been using Fedora a couple of months so still learning.

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 2:56 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
ofnuts wrote:
What does it say on python 2.7?

Image
The same error in xubuntu GIMP 2.6.12 and 2.8-RC1
Gimp 2.8 on Windows 7 with python 2.7 is the same problem.

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 3:03 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
pogogogo wrote:
ofnuts wrote:
What does it say on python 2.7?

Image
The same error in xubuntu GIMP 2.6.12 and 2.8-RC1
Gimp 2.8 on Windows 7 with python 2.7 is the same problem.

Since you are on Linux, can you try same after starting Gimp from a terminal session? Messages in the terminal may be a bit more complete and may help pinpointing the problem.

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 3:14 pm  (#38) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
RobA wrote:
pdb.gimp_fonts_get_list("sans")[1][0]


...which will return the text name of the first font with "sans" in it.
Doesn't seem to work in this case, the PDB (or wire_read channel) isn't initialized yet at registration time.

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 3:27 pm  (#39) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
I have a message.
Image

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 4:02 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
pogogogo wrote:
I have a message.

Very strange. The second message come from the destructor of the Text object. So the text object has been created. But the workimage is created in its initializer, so it should be there. Unless the problem is indeed when creating this image. Can you try to change the line:
self.workImage=gimp.Image(fontSize*4, fontSize*4, RGB)

to
self.workImage=gimp.Image(int(fontSize*4),int(fontSize*4), RGB)

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 4:37 pm  (#41) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
ofnuts wrote:
molly wrote:
I am using Gimp-2.6.12 in Linux Fedora 16

Can you start Gimp from a terminal session, and see if you get any messages in the terminal session when the script runs?

I can try but I never did that before so someone will have to tell me how to do it. I have only been using Fedora a couple of months so still learning.

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 4:51 pm  (#42) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
ofnuts wrote:
pogogogo wrote:
I have a message.

Very strange. The second message come from the destructor of the Text object. So the text object has been created. But the workimage is created in its initializer, so it should be there. Unless the problem is indeed when creating this image. Can you try to change the line:
self.workImage=gimp.Image(fontSize*4, fontSize*4, RGB)

to
self.workImage=gimp.Image(int(fontSize*4),int(fontSize*4), RGB)


After changing everything is 2xOK! :hi5
It works in ubuntu and windows too.
Many thanks for all of your scripts. :tyspin

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 5:06 pm  (#43) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
ofnuts wrote:
pogogogo wrote:
I have a message.

Very strange. The second message come from the destructor of the Text object. So the text object has been created. But the workimage is created in its initializer, so it should be there. Unless the problem is indeed when creating this image. Can you try to change the line:
self.workImage=gimp.Image(fontSize*4, fontSize*4, RGB)

to
self.workImage=gimp.Image(int(fontSize*4),int(fontSize*4), RGB)


This works for Gimp-2.7 versions. :) :bigthup

_________________
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: Text along path
PostPosted: Mon Apr 09, 2012 5:16 pm  (#44) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
OK, updated Sourceforge with version 0.1...

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Mon Apr 09, 2012 5:25 pm  (#45) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Ofnuts! Great script. :)

_________________
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: Text along path
PostPosted: Mon Apr 09, 2012 5:58 pm  (#46) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
pogogogo wrote:
The script works for me only with python 2.6.No matter what version of Gimp :noiseblower
Image


Yours is perfect pogogogo

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Tue Apr 10, 2012 7:13 am  (#47) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I deleted the 0.0 plug-in after playing with it for days and I am now trying the 0.1 from source forge.
So far, this is as far as I got with it. In the paths dialog, every letter is on a different layer and some of them are faded and unreadable. I don't know what I am doing wrong.
Would someone who is having good luck, like pogogogo...anyone do a screen shot of the text-along-path screen so I can see what settings you used.
Also, how do I stroke the path with a color if they are all on different layers?
Thanks in advance.

Image

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Tue Apr 10, 2012 7:54 am  (#48) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
molly wrote:
I deleted the 0.0 plug-in after playing with it for days and I am now trying the 0.1 from source forge.
So far, this is as far as I got with it. In the paths dialog, every letter is on a different layer and some of them are faded and unreadable. I don't know what I am doing wrong.
Would someone who is having good luck, like pogogogo...anyone do a screen shot of the text-along-path screen so I can see what settings you used.
Also, how do I stroke the path with a color if they are all on different layers?
Thanks in advance.

Image

You must have used "Yes" to "Keep character paths" (as well as to "Keep upright"). This isn't necessary, a complete path for the whole string is always produced (it should be at the bottom of your paths list...). Actually, since you haven't clicked on the eye icons on the paths in the paths list, what you see there is the "master" path.

The "faint" characters may be due to overlapping paths with previous attempts

There is an option to leave individual character paths in because it can be useful at times (want to use different colors, or fix selections where characters overlap).

Start with the defaults (besides text/font, which are mandatory))...

_________________
Image


Top
 Post subject: Re: Text along path
PostPosted: Tue Apr 10, 2012 9:03 am  (#49) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7311
Location: Göteborg at last!
Ofnuts - Golden Spiral, path-mirror and path-spread all show up in my plugin browser, this is the only one that doesn't. Is there anything at all that you did with those that you forgot with this one? Could it have anything to do with my insistence on sticking to 2.6.11?


Top
 Post subject: Re: Text along path
PostPosted: Tue Apr 10, 2012 9:20 am  (#50) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Erisian wrote:
Ofnuts - Golden Spiral, path-mirror and path-spread all show up in my plugin browser, this is the only one that doesn't. Is there anything at all that you did with those that you forgot with this one? Could it have anything to do with my insistence on sticking to 2.6.11?

It is displays fine in both my python-fu and script-fu browsers. If it doesn't show up on your setup it is likely because it didn't register properly due to som execution/syntax error, but then this normally produces messages visible if you start gimp with gimp-console. Did you at least upgrade to version 0.1?

You can check that the file didn't get damaged by starting a command prompt, navigating to your plugin directory, and run (assuming your python interpreter has a "python" executable of course):
python text-along-path.py

This should answer something like:
Traceback (most recent call last):
  File "text-along-path.py", line 28, in <module>
    from gimpfu import *
ImportError: No module named gimpfu

This error is normal, "gimpfu" in only defined when running as a Gimp plugin, but the Gimpfu module is loaded only after the file has been parsed and found to not contain any syntax errors. So if it shows up the file is clean.

_________________
Image


Top
Post new topic Reply to topic  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) ofn-text-path-selection

14

No new posts Aligning Text on a Circle Path

2

No new posts Attachment(s) No scrollomg interface for text logo bend path

7

No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3

No new posts Attachment(s) Bend Text-Logo as helper Ofn-bend-path

75



* Login  



Powered by phpBB3 © phpBB Group