Re: [Gimp-developer] Need help with Python on GIMP 2.8 for bug fixing




Hi all,

thanks for all your help, at least it was very easy get it running.
It seems that in GIMP 2.8.x Python script will initialized if they
are located at the "plug-ins" directory and not at the "scripts" directory.

Seems the "gimp-plugin-registry" package made this error.

Best regards
Eckhard.

BTW: There is no up-to-date documentation about Python in GIMP 2.8 right?



Zitat von Ofnuts <ofnuts laposte net>:

On 08/03/2013 11:04 AM, bart neeneenee de wrote:
Hi all,

thanks for the first hints but no way to get it working. My plugin
structure for testing is:
from gimpfu import * import os, string, sys import os.path
gettext.install("gimp20-python", gimp.locale_directory, unicode=True)  def
python_fu_cmyk_tiff_2_pdf(active_image, active_layer, this_file1,
this_file2, this_compress, this_dpi, delete_files, start_viewer):
do_delete = 0  register(  "python_fu_cmyk_tiff_2_pdf",  "CMYK Tiff 2 PDF",
"CMYK Tiff 2 PDF 20130802\nCreating a CMYK PDF for prepress from a CMYK
Tiff image.",  "Eckhard M. Jaeger, http://my.opera.com/area42/blog/";,  "GPL
V2 License",  "2013",  "*",  "*",  [   (PF_FILENAME, "this_file1", ("CMYK
Tiff Images"), ""),   (PF_FILENAME, "this_file2", (" "), ""), (PF_RADIO,
"this_compress",  ("Compression"), "0", (("JPEG 95% Quality","0"), ("Zip
Full Quality","2"), ("No Compression","4"))),   (PF_SPINNER, "this_dpi",
("Resolution (dpi)"), 300, (0,2400,50)),    (PF_TOGGLE, "delete_files",
("Delete Images\nafter PDF creation"), False),   (PF_TOGGLE,
"start_viewer", ("Start PDF Viewer\nafter export"), True),  ], [],
python_fu_cmyk_tiff_2_pdf,  domain=("gimp20-python",
gimp.locale_directory),  menu="<image>/Image/Separate/" ) main()  I didn't
get an eror on the python console nor the plugin showed up at menus or
python script listing :(  Cheers Eckhard.
_______________________________________________



No way python is going to run this jumbled code...

You seem to be missing at least one "import gettext"...

PM me the full thing otherwise...

_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list





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