It is currently Mon Jul 22, 2024 1:30 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 10:37 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
RobA wrote:
Rod wrote:
I need a tutorial on creating channels and adding them to lighting effects in scm.
How do you name several channels so you can grab them for use later? The let statement?
Or can i just define those 3 channels and call them later?


You can instantiate them them in the main let of your script and set them later:

(define (script-fu-reptile-text image layer)
  (let*
    ((saved-selection1 (car (gimp-selection-save image)))
     (saved-selection2 (car (gimp-selection-save image)))   
     (saved-selection3 (car (gimp-selection-save image))))

   ...remainder of script...
  )
)   


But there is no checking that there is a selection, and it will save a blank channel if there is no selection. If a script required a selection I tend to do something like:

(define (script-fu-reptile-text image layer)
  (let*
    ((saved-selection1 0) ; this one will be unchanged so can be loaded up at the end of the script
     (saved-selection2 0)   
     (saved-selection3 0))

    (when (= (car (gimp-selection-is-empty img)) FALSE) ; there is a selection - good
      (set! saved-selection1 (car (gimp-selection-save image)))
      (set! saved-selection2 (car (gimp-selection-save image)))   
      (set! saved-selection3 (car (gimp-selection-save image)))

      ... do script...
     
      ; and load up the original selection and the channels when done
      (gimp-selection-load saved-selection1)
      (gimp-image-remove-channel image saved-selection1)
      (gimp-image-remove-channel image saved-selection2)
      (gimp-image-remove-channel image saved-selection3)

  )
)   


of course, this is ignoring all the other stuff with undo stacks, and pushing context, etc.

HTH.

-Rob A>


Graechan and Rob you have both helped me immensely. :bigthup
Now i should be able to incorporate bump maps and environment maps into the scripts i write.
You guys are great! :tyspin :tyspin :tyspin

_________________
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: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 11:58 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
This looks real cool with the shine.scm added Graechan. :)

Image

Thanks to Graechan for adding the shine part of the script for me. :bigthup

New script attached. :)

Attachment:
lizard-breath-v-2.0_RD.scm [6.47 KiB]
Downloaded 245 times


You need to have a active text layer for this script to work However...it will work on a shape or area on a transparent layer.The script simply selects everything and converts it.

Example
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: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 12:16 pm  (#23) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you Rod...very nice. I received two errors when I ran the script and I didn't get any options like color etc. Was I supposed to get those?

Image

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 12:21 pm  (#24) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Here is the error.
Image

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 4:33 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
Thanks Molly.
I believe that error has to do with the python drop shadow effect i added in the script.
Perhaps i will take that out and add the script-fu-drop-shadow instead.

The error seems to be unknown run mode and the PDB doesn't have a parameter like RUN-NONINTERACTIVE or RUN-INTERACTIVE. It just asks for a integer.
So i figured 0 for INTERACTIVE and 1 for NON-INTERACTIVE.

When i used 0 it returned 1-65 as options. That i don't understand.I use 1 or 2 and it runs but throws that error.Must be something in the python layer fx script.

It runs but has problems with just empty selections and works the best with a black area on a transparent bg.That is how i created the shapes in the above image.

The script is written so that it selects an shape or text on a transparent bg. :)
Scale shape and size are already available as a choice.
Via the pop up dialog.
Size can be anywhere from 5-100 and 4 choices for scale shape.


As for colors i am working on making those selectable.I am still figuring that part out. :)
scale color (both colors)?
border color
and possibly shadow color for reflections.

The script uses neon so it needs a black color in there for better results.I could have the user dialog ask for just the scale color, and border color.

_________________
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: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 4:48 pm  (#26) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
These are the only options I get. I also still get the two error windows. Also I don't get the gloss layer

Image

Image

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 4:58 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
I can't get this to work with or without a selection and I have text on a trasnparent BG. Is this script written strictly for 2.8 users? I get the same two errors but nothing happens.

Is Shine used in this script? I DL and installed it but when I looked in the Plug-in Browser for Shine, it said it was a temporary procedure. This is a very cool looking effect Rod and I really want to be able to use it.

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 5:04 pm  (#28) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
The shine I have Drac is a script scm file. Also, I think the shine is supposed to be built into Rod's script, not sure. The first two I did had the shine, earlier on in this thread. Now It doesn't.

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 5:09 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Yeah I DL it from Graechan's post above but I can't get it to work on its own. I thought maybe you had to have it installed for Rod's script to work but I can't get that one to work either.

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 5:36 pm  (#30) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Last try Image

Image

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 7:26 pm  (#31) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Shine.scm is a script that adds a finish to a image on a transparent background such as a text image e.t.c, and the image should be the 1 layer only or the top layer.

I apologize for the rough Finnish to the script but it was only a routine that I used in other scripts

This is an image before shine, the text layer is on top and active.

Image

This is the image after shine

Image

I hope this example will help clear up what shine is for, as I originally posted for Rod but if people enjoy the script I will Gladly support it

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 7:45 pm  (#32) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I love that look Graechan, very cool

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 8:08 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
nice, very nice!


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 8:35 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 620
Location: New York
molly wrote:
Here is the error.
Image
I'm getting that same error


using
;;; Date : August 15th 2012
;;; Revision: v-02

I guess I'm out of luck as I'm not using GIMP 2.8

_________________
Ubuntu 22.04, Kernel i686, 5.15.0-107-generic
python3 v3.10.12 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 9:57 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14715
Location: USA
Yes i used PDB calls from 2.8 so you will get deprecation errors in Gimp-2.6 most likely.
It should work fine in Gimp-2.8 however.

When you use the script try using it with just a white bg layer and black text on a transparent layer.
Just those 2 layers.

Molly i believe the drop shadow above your layers is the gloss shadow layer.make it invisible and see. :)

About coloring -
If you select the original image layer you can use Colors>Colorize to change colors for the body of the text or shape, or whatever you created.
If you select the top drop shadow layer and use colorize you can change the border color. :)
Don't go to far to the left with lightness setting (colorize), or you will blow out the gloss and make it darker.

Examples

Image

Image

This was actually an text layer i had ran my crayon-text script on.This was comic sans at one time. :)

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: Reptile Text in Gimp-2.8
PostPosted: Thu Aug 16, 2012 8:16 am  (#36) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
It would be my guess that there are a lot of folks that are still using 2.6.11 or 2.6.12. Any chance the Reptile breath or at least the Shine script can be adapted/written to work in 2.6?

_________________
Image


Top
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2

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 Attachment(s) manipulate a portion of text inside a text layer using python-fu

2

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

6

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