Re: [Gimp-developer] Register script in Vectors Menu?

2009-07-28 Thread Rob Antonishen
On Tue, Jul 28, 2009 at 12:15 AM,  wrote:
 Quoting Rob Antonishen

 I have written a script to fractalize a path (vector) and wanted to
 register it in the paths menu.
 Here is my register statements:
 :
 :
                     SF-IMAGE      image              0
                     SF-DRAWABLE   drawable           0
 :
 :
 And the error I get is:
 attempted to install Vectors procedure fractalize-path which does
 not take the standard Vectors Plug-In arguments: (INT32, IMAGE,
 VECTORS).

 After SF-IMAGE, the next argument must be of type SF-VECTORS (not
 SF-DRAWABLE).



Brilliant - Thanks.  I was confused by the message, not realizing that
the initial INT32 in the error message was the image type (set to 
in my case).

Thanks-

-Rob A
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Register script in Vectors Menu?

2009-07-28 Thread saulgoode
Quoting Rob Antonishen rob.antonis...@gmail.com:

 Brilliant - Thanks.  I was confused by the message, not realizing that
 the initial INT32 in the error message was the image type (set to 
 in my case).

Actually, the first argument is the RUN-MODE, which is implicit when  
calling a Script-fu from another Script-fu (but must be supplied when  
calling a plug-in). This convention is somewhat unfortunate because it  
requires Script-fu authors to know what language a PDB function is  
written in (or maybe I'm missing something).



___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Register script in Vectors Menu?

2009-07-28 Thread Rob Antonishen
Hmm. I assumed because the error was in a register call that it
referref to the image type param.

In either case, it worked. Thanks!

-Rob A

On 7/28/09, saulgo...@flashingtwelve.brickfilms.com
saulgo...@flashingtwelve.brickfilms.com wrote:
 Quoting Rob Antonishen rob.antonis...@gmail.com:

 Brilliant - Thanks.  I was confused by the message, not realizing that
 the initial INT32 in the error message was the image type (set to 
 in my case).

 Actually, the first argument is the RUN-MODE, which is implicit when
 calling a Script-fu from another Script-fu (but must be supplied when
 calling a plug-in). This convention is somewhat unfortunate because it
 requires Script-fu authors to know what language a PDB function is
 written in (or maybe I'm missing something).





-- 
Sent from my mobile device
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Register script in Vectors Menu?

2009-07-27 Thread Rob Antonishen
I have written a script to fractalize a path (vector) and wanted to
register it in the paths menu.
Here is my register statements:

(script-fu-register fractalize_path
Fractalize Path...
Fractalize the active path.
Rob Antonishen
Rob Antonishen
July 2009

SF-IMAGE  image  0
SF-DRAWABLE   drawable   0
SF-ADJUSTMENT Subdivisions   (list 3 1 5 1 2
0 SF-SLIDER)
SF-ADJUSTMENT Smoothness (list 5 0 20
0.1 1 1 SF-SLIDER)
SF-TOGGLE Interpolate First  FALSE
SF-ADJUSTMENT Interpolate Pixels (list 50 15 100
1 10 0 SF-SLIDER)
)

(script-fu-menu-register fractalize_path
 Vectors)

And the error I get is:
attempted to install Vectors procedure fractalize-path which does
not take the standard Vectors Plug-In arguments: (INT32, IMAGE,
VECTORS).


Is it not possible to register a script-fu with a number of different
parameters into that menu location?

I have successfully registered scripts into other locations like
Gradients and Layers using this mechanism.

-Rob A
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Register script in Vectors Menu?

2009-07-27 Thread saulgoode
Quoting Rob Antonishen rob.antonis...@gmail.com:

 I have written a script to fractalize a path (vector) and wanted to
 register it in the paths menu.
 Here is my register statements:
 :
 :
 SF-IMAGE  image  0
 SF-DRAWABLE   drawable   0
 :
 :
 And the error I get is:
 attempted to install Vectors procedure fractalize-path which does
 not take the standard Vectors Plug-In arguments: (INT32, IMAGE,
 VECTORS).

After SF-IMAGE, the next argument must be of type SF-VECTORS (not  
SF-DRAWABLE).


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer