Difference between revisions of "Doc talk:Gimp2synfig"

From Synfig Studio :: Documentation
Jump to: navigation, search
m
m (Lack of tips to install this script elsewhere than gnu/linux system + strike old talk)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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:
+
* Lack of tips to install this script elsewhere than on gnu/linux system (external link to [http://libregraphicsworld.org/blog/entry/gimp-add-ons-types-installation-management 1] or there [http://allthingsgimp.blogspot.com/2009/09/gimp-how-to-install-scripts-plug-ins-to.html 2] ? ) --[[User:D.j.a.y|D.j.a.y]] ([[User talk:D.j.a.y|talk]]) 10:04, 8 January 2013 (UTC)
 +
 
 +
<strike>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">
 
  19    <param name="canvas">
Line 11: Line 13:
 
  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)
 +
 +
$ 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)
 +
 +
http://dooglus.rincevent.net/random/synfigexport.py is a fixed version.  In GIMP 2.2, all the arguments to Layer.__init__ are required, so I specify the opacity and blend method. -- [[User:Dooglus|dooglus]] 16:39, 26 April 2008 (EDT)
 +
 +
Patch is merged. Thank you --[[User:AkhIL|AkhIL]] 20:01, 26 April 2008 (EDT)
 +
</strike>

Latest revision as of 12:04, 8 January 2013

  • Lack of tips to install this script elsewhere than on gnu/linux system (external link to 1 or there 2 ? ) --D.j.a.y (talk) 10:04, 8 January 2013 (UTC)

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)

http://dooglus.rincevent.net/random/synfigexport.py is a fixed version. In GIMP 2.2, all the arguments to Layer.__init__ are required, so I specify the opacity and blend method. -- dooglus 16:39, 26 April 2008 (EDT)

Patch is merged. Thank you --AkhIL 20:01, 26 April 2008 (EDT)