It is currently Fri Apr 19, 2024 10:55 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Mon Aug 13, 2012 5:17 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
thats nice and smooth Graechan


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Mon Aug 13, 2012 5:34 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Looks good to me Graechan

_________________
Image


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Mon Aug 13, 2012 8:54 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Sure does look very close Graechan.
Did you use channels with a edge blur and lighting effects? I also used a channel for the mosaic layer. :)

_________________
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: Mon Aug 13, 2012 10:11 pm  (#14) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I used a channel blurred by 20 to bumpmap the mosaic layer(settings spherical height 20), to get this far

Image

I then ran shine.scm for extra gloss to get this image

Image

_________________
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: Tue Aug 14, 2012 9:00 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Very nice results Graechan. Shine.scm? Care to share it? :)
I created a couple scripts here are the results.
Both can be located at Script-Fu>Text Effects>

Image

Image

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?
(define (script-fu-reptile-text image layer scalesCh blurredCh originalCh)


I need to create 3 channels from a selection.
original
blurred
scales
Then i need to use blurred and scales in lighting effects as bump maps.
Here is the pipe i want to use
select text on a layer
enlarge the layer to image size
fill the text layer with a special color
selection to a channel - original
copy original channel and re name blurred
blur this channel by 5 or less (depending on text size)
go back to layers dialog and run lighting effects and use the blurred channel for a bump map
create another channel from the original text selection name it scales, and run mosaic tiles on it.
invert that channels colors
reselect the colored text layer and run lighting effects using the scales layer as a bump map.
create a border around the text
Then create a drop shadow - these are the effects i would like the user to control
drop shadow offset and blur
scale color
scale size
scale shape
scale border color

That's the pipe in a nutshell. :)


I thought it would be a snap but ran into problems with the channels.
Any help would be appreciated...thanks!

Anyway i am zipping both scripts and adding them here if anyone is interested.

Attachment:
Reptile-ScriptsRD.zip [818.91 KiB]
Downloaded 460 times

_________________
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: Tue Aug 14, 2012 11:39 pm  (#16) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Rod I created shine as a way to add gloss to metallic text scripts but I will tidy it up and post

Image before shine

Image

Image after shine

Image

Attachment:
Shine.scm [4.7 KiB]
Downloaded 139 times

_________________
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 4:05 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
That is very cool Graechan. Thank you

_________________
Image


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

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
I think you need to submit that shine.scm to the Registry. I did an alphabetical search yesterday and could not find it listed. Cool Script. Thanks Graechan!

_________________
Image


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

Joined: Apr 30, 2010
Posts: 1937
Location: Missouri
Ok, For nostalgia

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Post subject: Re: Reptile Text in Gimp-2.8
PostPosted: Wed Aug 15, 2012 9:50 am  (#20) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
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>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 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: 14709
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: 14709
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 240 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: 14709
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 new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  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 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