python plugin dos not receives changes to FLOATARRAY parameters done by libgimp functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi!

i wrote a c gimp plugin which is called from an python gimp plugin. the
c plugin receives a FLOATARRAY parameter which it modifies.
the c plugin sees the values the python plugin has put into the
FLOATARRAY, but if it modifies these, this changes are not send back to
the python plugin.

how to made it work?
do i have to change my python or my c plugin?
do i have to modify gimps python-plugin-interface?

i guess some special converter has to be written to automaticaly
construct a python array from FLOATARRAYS.


an equivalent question:
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?
"""

regards
kl
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux