It is currently Sat May 04, 2024 1:01 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:11 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Experimental image for a website I moderate.

Image

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:37 pm  (#32) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
kewl.......... :coolthup

_________________
Image


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 9:50 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 7:06 am  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


lol
very nice Photomaster!

Saulgoode is there a way to write a script for us Python users?
Would that make it faster on rendering?

_________________
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: Warped text
PostPosted: Wed Jul 07, 2010 10:54 am  (#35) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!

As near as I can tell, there are two things preventing the script from running on GIMP 2.4. First, there is no PDB function to copy a path. This is easily rectified if you add the following block of code to the beginning of the script:
(unless (symbol-bound? 'gimp-vectors-copy)
  (define (gimp-vectors-copy orig-path)
    (let* ((image (car (gimp-vectors-get-image orig-path)))
           (path (car (gimp-vectors-new image
                         (car (gimp-vectors-get-name orig-path)))))
     (strokes (vector->list (cadr (gimp-vectors-get-strokes orig-path))))
     (stroke-info nil))
      (while (pair? strokes)
        (set! stroke-info (gimp-vectors-stroke-get-points orig-path (car strokes)))
        (gimp-vectors-stroke-new-from-points path
                      (car stroke-info)
                      (cadr stroke-info)
                      (caddr stroke-info)
                      (cadddr stroke-info))
        (set! strokes (cdr strokes)))
      (list path))))


The other problem is that the 2.4 PDB does not provide a function to convert a text layer to a path, and it would not be trivial for me to write such a function (I'm not even sure it can be done in Script-fu). However, if you make the above change to the script, you should be able to use the script as long as you manually convert your text layer to a path, activate your envelope path, and then run the script using the "alternate path" option (and setting the alternate path to the saved text path).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 11:23 am  (#36) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Rod wrote:
Saulgoode is there a way to write a script for us Python users?

I usually leave Python out of my GIMP as I consider it an unfortunate waste of memory. :)

Rod wrote:
Would that make it faster on rendering?

No, I highly suspect it would not. The script spends about 95% of its time finding the distance along two paths (the horizontal and vertical axes) and retrieving/setting path control points using internal GIMP functions. Any Python script (following the same approach) would use those same GIMP functions and not experience any significant speed improvement.

One potential means of improving speed would to cache the horizontal curves as they are generated and search the cache before calculating a new curve. In this way, the horizontal curve for any given Y location in the text would only have to be calculated once. The question is whether a search for and retrieval of data in the cache (performed in an interpreted language) would be any faster than recalculating the horizontal curve (which is performed by GIMP in compiled C). I suspect it would not; though if someone were to convert the program to a compiled plug-in then high-speed cache lookups would probably be worthwhile.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 1:04 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks for that quick answer saulgoode. =)
As usual it was very informative.

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: Warped text
PostPosted: Wed Jul 07, 2010 9:54 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Thanks for the possible solution, SG. I will give this a try on my next day off!


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 2:57 am  (#39) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
nice script Saulgoode ( and nice results too O)

_________________
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: Warped text
PostPosted: Thu Jul 08, 2010 11:14 am  (#40) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton,

I have made a version of the script for GIMP 2.4. It differs from the original 2.6 script in that the active path is your text path and you must choose the envelope shape path from within the dialog (for the original script, the active path was employed as the shape path and you had to choose an alternate "text" path if you weren't using a text layer). This is so the default setting accommodates the common case that you will have performed the requisite "Text to Path" command just before running the script.

http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/warppath-2-4.scm

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 9:41 pm  (#41) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Thanks! I hope to have a chance to work on this early next week.


Top
 Post subject: Re: Warped text
PostPosted: Sun Jul 11, 2010 11:28 am  (#42) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
I have submitted this script to the GIMP Plug-in Registry. I have also updated the script so that it is about 10-15% faster (otherwise no changes).

Thanks for all the help in working out the kinks.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Sun Jul 11, 2010 11:45 am  (#43) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Cool. I downloaded the newest version - really like having your initials in the filename. Thanks for the nice plug for Gimp Chat in the Registry. :-D

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


Top
 Post subject: Re: Warped text
PostPosted: Mon Jul 12, 2010 2:44 pm  (#44) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
me too! =)
love this 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: Warped text
PostPosted: Mon Oct 15, 2012 9:02 am  (#45) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
i got the following error

Attachment:
Error.jpg
Error.jpg [ 228.98 KiB | Viewed 2937 times ]


i think i deleted a few brushes...can anybody upload those for me (Circle (#)) ?!


Top
 Post subject: Re: Warped text
PostPosted: Mon Oct 15, 2012 9:39 am  (#46) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
I think the GIMP developers may have removed that brush in 2.8. The file, "Circle-1.vbr", can be downloaded from GIMP's online repository, but that is just a temporary solution until I get around to updating the script.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Mon Oct 15, 2012 10:06 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
thanks for the quick help, saulgoode !

how do i download the brush from that website ??
when i try so save it, i get a html file


Top
 Post subject: Re: Warped text
PostPosted: Mon Oct 15, 2012 10:09 am  (#48) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
:ninja

Those circle brushes are irrelevant in v 2.8. You size the big circle brush to the size you want.

I know, I tried it because at first I was thinking they should be there. Copied them from my old v2.6 program files brushes folder. They just took up space in my brushes folder.

I've attached all the old circle brushes but they are really a waste of time and space in v2.8


Attachments:
v2.6Circle Brushes.zip [1.92 KiB]
Downloaded 199 times

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein
Top
 Post subject: Re: Warped text
PostPosted: Mon Oct 15, 2012 10:10 am  (#49) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Thanks for this script, just need to play with it some more but the results are good.

_________________
Image


Top
 Post subject: Re: Warped text
PostPosted: Mon Oct 15, 2012 10:13 am  (#50) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
Oregonian wrote:
Esper, are you using gimp v2.8 or 2.6? Those circle brushes are irrelevant in v 2.8. You size the big circle brush to the size you want.
erm 2.8.2

so its no use installing them ?

i cant use the script until saulgoode fixes it ? :(


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Text Style Collection - plugin with many fancy text styles

14

No new posts script to load text file and create text layer

6

No new posts Attachment(s) manipulate a portion of text inside a text layer using python-fu

2

No new posts Attachment(s) GEGL ROCK TEXT 2 - Advance rock text plugin -requires Gimp 2.10.32+

8

No new posts Attachment(s) Colorful Pattern from Text (Text Pattern) Plug-in

32



* Login  



Powered by phpBB3 © phpBB Group