Difference between revisions of "Doc talk:Gimp2synfig"

From Synfig Studio :: Documentation
Jump to: navigation, search
m
Line 11: Line 11:
 
  22          <param name="z_depth">
 
  22          <param name="z_depth">
 
  23            [...]
 
  23            [...]
 
  
 
Yes, this script was writen for 2.4.*. I have no 2.2.* to test it. So I'll try to fix this problem if you give me information from gimp-2.2.* console with backtrace. --[[User:AkhIL|AkhIL]] 12:42, 26 April 2008 (EDT)
 
Yes, this script was writen for 2.4.*. I have no 2.2.* to test it. So I'll try to fix this problem if you give me information from gimp-2.2.* console with backtrace. --[[User:AkhIL|AkhIL]] 12:42, 26 April 2008 (EDT)
 +
 +
$ gimp /tmp/111.xcf
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:428: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  hbox = gtk.HBox(gtk.FALSE, 5)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:430: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  dialog.vbox.pack_start(hbox, expand=gtk.FALSE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:433: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  table = gtk.Table(len(params), 2, gtk.FALSE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:437: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  hbox.pack_end(table, expand=gtk.FALSE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:440: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  vbox = gtk.VBox(gtk.FALSE, 10)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:441: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  hbox.pack_start(vbox, expand=gtk.FALSE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:446: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  vbox.pack_start(pix, expand=gtk.FALSE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:450: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
 +
  label.set_line_wrap(gtk.TRUE)
 +
/usr/local/lib/gimp/2.0/python/gimpfu.py:453: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
 +
  vbox.pack_start(label, expand=gtk.FALSE)
 +
Traceback (most recent call last):
 +
  File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 469, in response
 +
    dialog.res = run_script(params)
 +
  File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 257, in run_script
 +
    return apply(function, params)
 +
  File "/home/chris/.gimp-2.2/plug-ins/synfigexport.py", line 248, in python_fu_exportsynfig
 +
    newlayer = gimp.Layer(newimg, l.name, l.width, l.height, l.type)
 +
TypeError: gimp.Layer.__init__() takes exactly 7 arguments (5 given)

Revision as of 21:23, 26 April 2008

vonhalenbach on IRC was using GIMP 2.2 and Python 2.5.1 and found that his generated sif output was ending after 20 lines:

19    <param name="canvas">
20      <canvas xres="10.000000" yres="10.000000">

whereas for me (with Python 2.5.2 and Gimp 2.4.5) it continues:

19    <param name="canvas">
20      <canvas xres="10.000000" yres="10.000000">
21        <layer type="import" active="true" version="0.1" desc="Background.png">
22          <param name="z_depth">
23            [...]

Yes, this script was writen for 2.4.*. I have no 2.2.* to test it. So I'll try to fix this problem if you give me information from gimp-2.2.* console with backtrace. --AkhIL 12:42, 26 April 2008 (EDT)

$ gimp /tmp/111.xcf
/usr/local/lib/gimp/2.0/python/gimpfu.py:428: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  hbox = gtk.HBox(gtk.FALSE, 5)
/usr/local/lib/gimp/2.0/python/gimpfu.py:430: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  dialog.vbox.pack_start(hbox, expand=gtk.FALSE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:433: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  table = gtk.Table(len(params), 2, gtk.FALSE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:437: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  hbox.pack_end(table, expand=gtk.FALSE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:440: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  vbox = gtk.VBox(gtk.FALSE, 10)
/usr/local/lib/gimp/2.0/python/gimpfu.py:441: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  hbox.pack_start(vbox, expand=gtk.FALSE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:446: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  vbox.pack_start(pix, expand=gtk.FALSE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:450: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
  label.set_line_wrap(gtk.TRUE)
/usr/local/lib/gimp/2.0/python/gimpfu.py:453: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  vbox.pack_start(label, expand=gtk.FALSE)
Traceback (most recent call last):
  File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 469, in response
    dialog.res = run_script(params)
  File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 257, in run_script
    return apply(function, params)
  File "/home/chris/.gimp-2.2/plug-ins/synfigexport.py", line 248, in python_fu_exportsynfig
    newlayer = gimp.Layer(newimg, l.name, l.width, l.height, l.type)
TypeError: gimp.Layer.__init__() takes exactly 7 arguments (5 given)