On Wed, Mar 15, 2006 at 01:43:12AM +0100, Kleistereimer wrote:
> how to use gimp_path_get_points from a python plugin?
> here some samplecode:
> def somefunc(image):
> floatarray = 
> for i in range(100):
> closed = 0
> count = 0
> gimp.pdb.gimp_path_get_points(image, "path1", 1, closed, count,
> return floatarray
> floatarray should be modified by 'gimp_path_get_points' but it's not.
> how to get this values transfered to the python plugin?
No, that's now how things work. This is how you do it:
path_type, path_closed, num_path_point_details, points_pairs = \
Return values are returned as return values, which is the python way to
do things. It's not like the C API.
If you browse the PDB within the python console, when you select a
procedure at hit "Apply", it will paste a sample of how to call it in to
the console entry box.
Gimp-developer mailing list