It is currently Mon Jul 08, 2024 2:45 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Thu Oct 06, 2011 6:30 pm  (#41) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I reset the filter and used the same settings you did Nix, I did not get what you did.
I'm using gimp 2.6.11 and gmic 1.5.0.3 so every thing is the same.
I'm using Fedora Linux OS.

There must be something the script is calling that the rest of us don't have.

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Thu Oct 06, 2011 8:06 pm  (#42) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
I feel special, haha. So anyone know how I can resolve this?

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Thu Oct 06, 2011 8:59 pm  (#43) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
After watching the vid I am now very "confused", here is the part of the Script that refers to the expansion setting.

;;;;Add the text layer for a temporary larger Image size
    (set! text-layer (car (gimp-text-fontname image -1 0 0 text 158 TRUE 632 PIXELS font)))
    (set! width (car (gimp-drawable-width text-layer)))
    (set! height (car (gimp-drawable-height text-layer)))   
    (gimp-image-remove-layer image size-layer)
    (gimp-image-resize-to-layers image)   
    (set! bkg-layer (car (gimp-layer-new image width height RGBA-IMAGE "Background" 100 NORMAL-MODE)))
    (gimp-image-add-layer image bkg-layer 1)

;;;;Expand the font if needed
    (if (> grow 0)
           (begin
    (gimp-selection-layer-alpha text-layer)
    (gimp-edit-clear text-layer)
    (gimp-selection-grow image grow)
    (gimp-context-set-foreground '(0 0 0))
    (gimp-edit-fill text-layer FOREGROUND-FILL)
    (gimp-selection-none image)
           )
    )

Can smeone help me, Nixnine you are truely a "Magician"
Your copy of the script is somehow merging the backgound layer the text layer? but I don't know becouse i'm "confused" now. also this Script has no dependances apart from GMIC.
Image

Image

Thankyou Marvin and 'O' for giving my problem some thought, also great pics Anna and molly.

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


Last edited by Graechan on Thu Oct 06, 2011 11:34 pm, edited 1 time in total.

Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Thu Oct 06, 2011 10:34 pm  (#44) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Well, I've compared my copy of the script with yours and it's exact. I don't know. I'll keep investigating the script and the rest. If anyone has any ideas let me know. This is really nagging me. Got to learn to write those buggers. :hehe

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 12:26 am  (#45) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I guess it could also go wrong here. This is where GMIC extrudes the text.

; *******************************************start 3 Dimensional Image
;
(if (= type 1)
      (begin
   
         (let*
            (
               ;; Matching variables
               (3d_fgd (car (gimp-layer-copy text-layer TRUE)))
                           (txt-width (car (gimp-drawable-width text-layer)))
                  (txt-height (car (gimp-drawable-height text-layer)))
                           (3d-height 3d-fgd-height)
                           (plate 0)                           
            )
      
            ;; Add a layers
                      (gimp-image-add-layer image 3d_fgd -1)
                     
            ;; name the layers
            (gimp-drawable-set-name 3d_fgd "3D_fgd")
                              
                  
            ;; Render extrude3d using G'MIC.
            (plug-in-gmic 1 image 3d_fgd 1
               (string-append
                  "-v - " ; To have a silent output. Remove it to display errors from the G'MIC interpreter on stderr.
                  "-gimp_extrude3d "
                                (number->string 3d-height) ",512,0.6,"
                                (number->string txt-width) ","
                                (number->string txt-height) ",0.88,"
                                (number->string x-angle) ",0,0,45,0,0,-100,0.50,0.70,4"                               
               )
            )
                     (gimp-selection-layer-alpha 3d_fgd)
                     (if (= plating 0) (set! plate 2))
                     (if (= plating 1) (set! plate 3))
                     (if (= plating 2) (set! plate 1))
                     (if (= plating 3) (set! plate 0))
                     (if (= plating 4) (set! plate 4))         
                  
            ;; Render Metallic look using G'MIC.
            (plug-in-gmic 1 image 3d_fgd  1
               (string-append
                  "-v - " ; To have a silent output. Remove it to display errors from the G'MIC interpreter on stderr.
                  "-gimp_tk_metallic 1,0,"
                                (number->string plate) 
               )
            )         
                      (gimp-image-lower-layer-to-bottom image text-layer)
                      (gimp-drawable-set-visible text-layer FALSE)
                      (gimp-selection-none image)                     
               )
; *******************************************end 3 Dimensional Image
           )
   )         

Besides this could you tick conserve layers and post the xcf Image.

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 12:37 am  (#46) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
I gave this filter a whirl cause it looked pretty cool. But it doesn't work and I was thumbing back in this thread and couldn't find anybody that has the problem I'm having.

Gimp: 2.6.11
G'MIC : 1.5.0.01

Now I just tried it with the default setting out of the box and then I tried changing a few thing and I got the same result each time. It gets to the point where it calls G'MIC and then folds up.
Attachment:
Capture.JPG
Capture.JPG [ 40.71 KiB | Viewed 1736 times ]


Any ideas?

Thanks!

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 12:47 am  (#47) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
MrBiggz wrote:
I gave this filter a whirl cause it looked pretty cool. But it doesn't work and I was thumbing back in this thread and couldn't find anybody that has the problem I'm having.

Gimp: 2.6.11
G'MIC : 1.5.0.01
You need to download G'MIC v 1.5.0.3.

Click this link and scroll down the list to the 1.5.0.3 versions.
http://sourceforge.net/projects/gmic/files/

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 12:53 am  (#48) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
As stated in the Read-me file(but who reads them)

GMIC is needed to run this script

GMIC is available from http://sourceforge.net/projects/gmic/files/ look for version
1.5.0.2 or later with Tom Keil's metal look filter.

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 4:07 am  (#49) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Graechan wrote:
As stated in the Read-me file(but who reads them)

:hehe I've gotten so that I do read some of the readme files. Sometimes they can be very helpful.

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 7:30 am  (#50) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
Oregonian wrote:
Graechan wrote:
As stated in the Read-me file(but who reads them)

:hehe I've gotten so that I do read some of the readme files. Sometimes they can be very helpful.


I'll plead guilty here! I didn't read the readme file! =( I usually do, I'll have to also admit that I've been bombarded with a lot kewl stuff here on this bored so it just got away from me. Kind of like a kid at xmas!

I will update that G'MIC ASAP! Thanks! =)

I updated .. same results it still crashes when it gets to G'MIC. =((

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 10:19 am  (#51) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
MrBiggz wrote:
I updated .. same results it still crashes when it gets to G'MIC. =((

The new stable update is 1.5.0.4. David posted it earlier so you will want it instead of 1.5.0.3.

After adding the new G'MIC plug-in to your GIMP > plug-ins folder, close GIMP and re-open to refresh the plug-ins.

Open any image to get into G'MIC. I don't know how familiar you are with getting G'MIC installed completely. Look at the image and do the things checked/written in red.

Image

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 11:38 am  (#52) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
That did it!

I've used it a few times but have never had to go to this part of it.

Once I opened that section things were already ticked, I just applied and then refreshed did a script-fu refresh and tried it again and voi'la! it werked! =))

Thanks!

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 12:33 pm  (#53) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Well, I updated to 1.5.0.4 with the same results. Attached is the .xcf of the image with default settings. The only thing changed is an expansion of 1 in the 3d setting.


Attachments:
Metallica.xcf [39 KiB]
Downloaded 121 times

_________________
I refuse to be confused, but am often confused at this refusal.
Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 6:20 pm  (#54) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
MrBiggz wrote:
That did it!

I've used it a few times but have never had to go to this part of it.

Once I opened that section things were already ticked, I just applied and then refreshed did a script-fu refresh and tried it again and voi'la! it werked! =))

Thanks!

Thanks 'O' I'm pleased you have it working MrBiggz Now I'm nearly finished. :yes

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 6:37 pm  (#55) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Nixnine when i looked at your xcf the text font was not Sans

For example this is what the font Sans at 100 pixels expanded by 1 looks like

Image

And this is yours

Image

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 7:22 pm  (#56) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
What font is that, Nixnine? I wanted to test it on my machine.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 9:23 pm  (#57) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Santos Dumont.

Every font I've tried results in the same.

Now on my gimp, I have placed many scripts/plug-ins where I want them. I have changed some scripts, such as default script/gradient/font, maybe altered the min and max font size available to the script. I change lots of little things like that, but didn't even change the script location of the metallica script. But I don't think that would matter since it doesn't call on anything other than gmic.

Well, if anyone has any suggestions, I'm open to try them.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Fri Oct 07, 2011 11:46 pm  (#58) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Nixnine could you delete Metallica.scm from your scripts folder, then download a fresh copy and install.
Then restart or refresh your GIMP and try again, Changing nothing in the script.

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


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Sat Oct 08, 2011 12:23 am  (#59) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
I've done that a couple times already. Still the prob exists. Strange.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Metallica Script now with menu addition for narrow fonts
PostPosted: Sat Oct 08, 2011 12:41 am  (#60) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Nixnine what do you have in your .gimp-2.6/fonts folder

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


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Wicked Profile (pipe cleaner addition).

3

No new posts How do I get rid of drop down menu

3

No new posts Attachment(s) GMIC in the menu

10

No new posts Attachment(s) I can't see the whole plugins menu

7

No new posts Attachment(s) Missing menu entry for 'Fade Retinex' in 2.10.18

4



* Login  



Powered by phpBB3 © phpBB Group