I want to write a Gimp-Python plugin in order to export all SVG paths from the current image. This seems quite simple but I am stuck with pdb calls, I may not be calling procedures correctly so I need your help.
Here is my code :
#!/usr/bin/env python
from gimpfu import *
def exportToSvg(img, layer) :
gimp.pdb.vectors_export_to_file(img,"C:/Users/Public/Documents/output.svg",0)
register(
"ExportToSvg",
"Export all SVG paths",
"Export all SVG paths from current image",
"My Name",
"My company",
"2015",
"<Image>/MyScripts/Export to svg",
"*",
[],
[],
exportToSvg)
main()
After opening Gimp and loading an image, when I click on my plugin i receive this error:
Error when calling « gimp-procedural-db-proc-info » : Procedure« vectors-export-to-file » not found
When I search in Gimp PDB, I can find"gimp-vectors-export-to-file" so what is the problem ? How should I call this procedure ?