RSS/Atom feed Twitter
Site is read-only, email is disabled

gimp_patterns_get_list

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

8 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

gimp_patterns_get_list Andrei Simion 11 Mar 04:34
  gimp_patterns_get_list David Gowers 11 Mar 06:45
  gimp_patterns_get_list Bill Skaggs 11 Mar 06:54
   gimp_patterns_get_list Sven Neumann 11 Mar 21:47
    gimp_patterns_get_list Andrei Simion 12 Mar 05:29
     gimp_patterns_get_list Andrei Simion 12 Mar 19:12
      gimp_patterns_get_list Andrei Simion 12 Mar 19:26
      gimp_patterns_get_list Sven Neumann 12 Mar 20:10
Andrei Simion
2008-03-11 04:34:10 UTC (about 17 years ago)

gimp_patterns_get_list

Hi,

I have the following problem: when calling gimp_patterns_get_list on the Gimp server, version 2.2 I got an error:

"not enough arguments for function 'gimp_patterns_get_list'"

The function works on the Gimp server, version 1.2.

I checked here: http://hans.breuer.org/gimp/pdb/alphabetic.html and it appears I can call it with no parameters.

Can somebody point to the list of functions that can be used on Gimp 2.2?

Thanks, Andrei

David Gowers
2008-03-11 06:45:09 UTC (about 17 years ago)

gimp_patterns_get_list

On Tue, Mar 11, 2008 at 2:04 PM, Andrei Simion wrote:

Hi,

I have the following problem: when calling gimp_patterns_get_list on the Gimp server, version 2.2 I got an error:

"not enough arguments for function 'gimp_patterns_get_list'"

The function works on the Gimp server, version 1.2.

I checked here: http://hans.breuer.org/gimp/pdb/alphabetic.html and it appears I can call it with no parameters.

Can somebody point to the list of functions that can be used on Gimp 2.2?

Yes. Use the pdb browser plugin found under /Xtns in the toolbox.

Thanks,
Andrei

Bill Skaggs
2008-03-11 06:54:13 UTC (about 17 years ago)

gimp_patterns_get_list

On Mon, Mar 10, 2008 at 8:34 PM, Andrei Simion wrote:

Can somebody point to the list of functions that can be used on Gimp 2.2?

It's all at:

http://developer.gimp.org/api/2.0/libgimp/index.html

The API for existing functions does not change within the 2.x releases. Functions that are new in 2.4 will be marked "Since 2.4" at the bottom of their description.

-- Bill

Sven Neumann
2008-03-11 21:47:40 UTC (about 17 years ago)

gimp_patterns_get_list

Hi,

On Mon, 2008-03-10 at 22:54 -0700, Bill Skaggs wrote:

It's all at:

http://developer.gimp.org/api/2.0/libgimp/index.html

Please note that this is the API for plug-ins written in C. If you are accessing the PDB directly or by means of another language binding, there are (sometimes subtle) differences. I'd suggest to use the Procedure Browser instead. That gives you the raw procedures at least.

Sven

Andrei Simion
2008-03-12 05:29:54 UTC (about 17 years ago)

gimp_patterns_get_list

Thanks everybody for the answers.

Andrei

Sven Neumann wrote:

Hi,

On Mon, 2008-03-10 at 22:54 -0700, Bill Skaggs wrote:

It's all at:

http://developer.gimp.org/api/2.0/libgimp/index.html

Please note that this is the API for plug-ins written in C. If you are accessing the PDB directly or by means of another language binding, there are (sometimes subtle) differences. I'd suggest to use the Procedure Browser instead. That gives you the raw procedures at least.

Sven

Andrei Simion
2008-03-12 19:12:47 UTC (about 17 years ago)

gimp_patterns_get_list

I checked in the procedure browser for gimp_patterns_get_list and found it is not supposed to get any compulsory parameters. There is an optional parameter, a regular expression string.

If the optional parameter is not provided, then no pattern is returned in the array. I passed the empty string and I got the list of available patterns.

I think this method is not properly documented in the procedure browser.

Andrei

Andrei Simion wrote:

Thanks everybody for the answers.

Andrei

Sven Neumann wrote:

Hi,

On Mon, 2008-03-10 at 22:54 -0700, Bill Skaggs wrote:

It's all at:

http://developer.gimp.org/api/2.0/libgimp/index.html

Please note that this is the API for plug-ins written in C. If you are accessing the PDB directly or by means of another language binding, there are (sometimes subtle) differences. I'd suggest to use the Procedure Browser instead. That gives you the raw procedures at least.

Sven

Andrei Simion
2008-03-12 19:26:06 UTC (about 17 years ago)

gimp_patterns_get_list

The pattern descriptions I get from gimp_patterns_get_list are different from what I used in version 1.2. Now I am using ver 2.2 of Gimp.

The pattern descriptions I am using are like this: 't-12'. The new descriptions are in plain English: 'Crack', 'Paper' ...

I would need a mapping between the old descriptions and the new ones.

Thanks, Andrei

Andrei Simion wrote:

I checked in the procedure browser for gimp_patterns_get_list and found it is not supposed to get any compulsory parameters. There is an optional parameter, a regular expression string.

If the optional parameter is not provided, then no pattern is returned in the array. I passed the empty string and I got the list of available patterns.

I think this method is not properly documented in the procedure browser.

Andrei

Andrei Simion wrote:

Thanks everybody for the answers.

Andrei

Sven Neumann wrote:

Hi,

On Mon, 2008-03-10 at 22:54 -0700, Bill Skaggs wrote:

It's all at:

http://developer.gimp.org/api/2.0/libgimp/index.html

Please note that this is the API for plug-ins written in C. If you are accessing the PDB directly or by means of another language binding, there are (sometimes subtle) differences. I'd suggest to use the Procedure Browser instead. That gives you the raw procedures at least.

Sven

Sven Neumann
2008-03-12 20:10:50 UTC (about 17 years ago)

gimp_patterns_get_list

Hi,

On Wed, 2008-03-12 at 14:12 -0400, Andrei Simion wrote:

I checked in the procedure browser for gimp_patterns_get_list and found it is not supposed to get any compulsory parameters. There is an optional parameter, a regular expression string.

If the optional parameter is not provided, then no pattern is returned in the array. I passed the empty string and I got the list of available patterns.

I think this method is not properly documented in the procedure browser.

The term "optional" in the procedure documentation means that you can pass an empty string here. GIMP core PDB procedures don't support optional parameters in the sense that you can omit them.

Sven