register scm script

View: New views
3 Messages — Rating Filter:   Alert me  

register scm script

by xaviermasr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I can't register the following script  when I refresh the server and don't
know what's wrong with it. Any suggestions?
---
define (uni-img size color)
(set! img (car (gimp-image-new- size size RGB)))
(set! layer (car (gimp-layer-new img size size RGB "layer 1" 100 NORMAL)))
(gimp-image-undo-disable img)
(gimp-image-add-layer img layer 0)
(gimp-palette-set-background color)
(gimp-edit-fill layer BG-IMAGE-FILL)
(gimp-display-new img)
(gimp-image-undo-enable img))
(script-fu-register "uni-img"
                        "uni-img"
                        "uni-img"
                        "uni-img <uni-img@...>"
                        "uni-img"
                        "04/05/2008"
                        ""
                SF-VALUE "size" "100"
                SF-COLOR "color" '(255 127 0))
(script-fu-menu-register "uni-img" "<Toolbox>/Script_Fu/Tutorials")
--
Thank you for your help.

--
Xavier Mas
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: register scm script

by Kevin Cozens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Xavier Mas wrote:
> I can't register the following script  when I refresh the server and don't
> know what's wrong with it. Any suggestions?
> ---
> define (uni-img size color)

You are missing the ( before 'define' but I will assume that is just a cut and
past error.

> (script-fu-menu-register "uni-img" "<Toolbox>/Script_Fu/Tutorials")

I would suggest "<Toolbox>/Xtns/Script-Fu/Tutorials" if you are using GIMP 2.4.

--
Cheers!

Kevin.

http://www.ve3syb.ca/           |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172      |"Same thing we always do, Pinkutus:
                                 |  Try to assimilate the world!"
#include <disclaimer/favourite> |              -Pinkutus & the Borg
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: register scm script

by xaviermasr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El Monday 05 May 2008 02:39:57 Kevin Cozens va escriure:

> Xavier Mas wrote:
> > I can't register the following script  when I refresh the server and
> > don't know what's wrong with it. Any suggestions?
> > ---
> > define (uni-img size color)
>
> You are missing the ( before 'define' but I will assume that is just a cut
> and past error.
>
> > (script-fu-menu-register "uni-img" "<Toolbox>/Script_Fu/Tutorials")
>
> I would suggest "<Toolbox>/Xtns/Script-Fu/Tutorials" if you are using GIMP
> 2.4.

Rigth, this is wrong. Thanks Kevin.


Cheers,

--
Xavier Mas
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user