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): > floatarray.append(0.0) > > closed = 0 > count = 0 > > gimp.pdb.gimp_path_get_points(image, "path1", 1, closed, count, > floatarray) > > 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: def somefunc(image): path_type, path_closed, num_path_point_details, points_pairs = \ pdb.gimp_path_get_points(image, "path1") return 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. -Yosh _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer