Notices


Reply
Thread Tools
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#161
Code:
Traceback (most recent call last):
  File "/opt/mypaint/share/mypaint/gui/application.py", line 99, at_application_start(*trash=())
                    else:
                        self.filehandler.open_file(fn)
  variables: {'fn': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora'), 'self.filehandler.open_file': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x429630d0>>)}
  File "/opt/mypaint/share/mypaint/gui/drawwindow.py", line 40, wrapper(self=<gui.filehandling.FileHandler object at 0x429630d0>, *args=(u'/home/user/MyDocs/MyPaint/Stick-figure.ora',), **kwargs={})
            try:
                func(self, *args, **kwargs)
                # gtk main loop may be called in here...
  variables: {'self': ('local', <gui.filehandling.FileHandler object at 0x429630d0>), 'args': ('local', (u'/home/user/MyDocs/MyPaint/Stick-figure.ora',)), 'func': ('local', <function open_file at 0x428b1bf0>), 'kwargs': ('local', {})}
  File "/opt/mypaint/share/mypaint/gui/filehandling.py", line 236, open_file(self=<gui.filehandling.FileHandler object at 0x429630d0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora')
            try:
                self.doc.model.load(filename, feedback_cb=self.gtk_main_tick)
            except document.SaveLoadError, e:
  variables: {'self.doc.model.load': ('local', <bound method Document.load of <lib.document.Document instance at 0x42933cb0>>), 'feedback_cb': (None, []), 'self.gtk_main_tick': ('local', <function gtk_main_tick at 0x428b1bb0>), 'filename': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora')}
  File "/opt/mypaint/share/mypaint/lib/document.py", line 358, load(self=<lib.document.Document instance at 0x42933cb0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora', **kwargs={'feedback_cb': <function gtk_main_tick at 0x428b1bb0>})
            try:
                load(filename, **kwargs)
            except gobject.GError, e:
  variables: {'load': ('local', <bound method Document.load_ora of <lib.document.Document instance at 0x42933cb0>>), 'kwargs': ('local', {'feedback_cb': <function gtk_main_tick at 0x428b1bb0>}), 'filename': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora')}
  File "/opt/mypaint/share/mypaint/lib/document.py", line 676, load_ora(self=<lib.document.Document instance at 0x42933cb0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora', feedback_cb=<function gtk_main_tick at 0x428b1bb0>)
                ani_data = z.read('animation.xsheet')
                self.ani.str_to_xsheet(ani_data)
            except KeyError: #ani
  variables: {'self.ani.str_to_xsheet': ('local', <bound method Animation.str_to_xsheet of <lib.animation.Animation object at 0x42980ef0>>), 'ani_data': ('local', '[\n    [\n        false, \n        "", \n        4\n    ], \n    [\n        false, \n        "", \n        4\n    ], \n    [\n        false, \n        "", \n        5\n    ], \n    [\n        false, \n        "", \n        6\n    ], \n    [\n        false, \n        "", \n        7\n    ], \n    [\n        false, \n        "", \n        8\n    ], \n    [\n        false, \n        "", \n        9\n    ], \n    [\n        false, \n        "", \n        10\n    ], \n    [\n        false, \n        "", \n        11\n    ], \n    [\n        false, \n        "", \n        12\n    ], \n    [\n        false, \n        "", \n        13\n    ], \n    [\n        false, \n        "", \n        14\n    ], \n    [\n        false, \n        "", \n        15\n    ], \n    [\n        false, \n        "", \n        16\n    ], \n    [\n        false, \n        "", \n        17\n    ], \n    [\n        false, \n        "", \n        18\n    ], \n    [\n        false, \n        "", \n        19\n    ], \n    [\n        false, \n        "", \n        20\n    ], \n    [\n        false, \n        "", \n        21\n    ], \n    [\n        false, \n        "", \n        22\n    ], \n    [\n        false, \n        "", \n        23\n    ], \n    [\n        false, \n        "", \n        24\n    ], \n    [\n        false, \n        "", \n        25\n    ], \n    [\n        false, \n        "", \n        26\n    ]\n]')}
  File "/opt/mypaint/share/mypaint/lib/animation.py", line 94, str_to_xsheet(self=<lib.animation.Animation object at 0x42980ef0>, ani_data='[\n    [\n        false, \n        "", \n        4\n ...[\n        false, \n        "", \n        26\n    ]\n]')
                if layer_idx is not None:
                    cel = self.doc.layers[layer_idx]
                else:
  variables: {'layer_idx': ('local', 26), 'cel': ('local', <lib.layer.Layer instance at 0x42b9cfa8>), 'self.doc.layers': ('local', [<lib.layer.Layer instance at 0x42bbd9b8>, <lib.layer.Layer instance at 0x42bba580>, <lib.layer.Layer instance at 0x42bb72d8>, <lib.layer.Layer instance at 0x42bb7058>, <lib.layer.Layer instance at 0x42ba57b0>, <lib.layer.Layer instance at 0x42bb4288>, <lib.layer.Layer instance at 0x42bac080>, <lib.layer.Layer instance at 0x42bac828>, <lib.layer.Layer instance at 0x42bac698>, <lib.layer.Layer instance at 0x42bac530>, <lib.layer.Layer instance at 0x42bac3a0>, <lib.layer.Layer instance at 0x42bac210>, <lib.layer.Layer instance at 0x42bac850>, <lib.layer.Layer instance at 0x42b9cf58>, <lib.layer.Layer instance at 0x42ba5b48>, <lib.layer.Layer instance at 0x42bac3c8>, <lib.layer.Layer instance at 0x42bac238>, <lib.layer.Layer instance at 0x42ba52d8>, <lib.layer.Layer instance at 0x42ba50d0>, <lib.layer.Layer instance at 0x42ba5080>, <lib.layer.Layer instance at 0x42ba5be8>, <lib.layer.Layer instance at 0x42ba5918>, <lib.layer.Layer instance at 0x42ba5648>, <lib.layer.Layer instance at 0x42ba5378>, <lib.layer.Layer instance at 0x42ba5030>, <lib.layer.Layer instance at 0x42b9cfa8>])}
IndexError: list index out of range
Every single animation file I save refused to load with the above error message. I tried both "Recent files" as well as starting the file from the terminal. Opening the normal way wouldn't work as the new and improved 'filehandling' layout prevents reaching the OK button.

First I thought it was because I added and removed frames, but it also happens when I leave the original setup of 24 frames as is.

Thanks nevertheless. Would be amazing to get this to work.

Edit: Just a thought. I believe I remember reading somewhere that xsheet required python2.6. Not newer, not older. If that's true, could our python2.5 be the cullprit?

Last edited by anthonie; 2014-01-13 at 20:29.
 
Posts: 215 | Thanked: 348 times | Joined on May 2011
#162
Originally Posted by anthonie View Post
Code:
Traceback (most recent call last):
  File "/opt/mypaint/share/mypaint/gui/application.py", line 99, at_application_start(*trash=())
                    else:
                        self.filehandler.open_file(fn)
  variables: {'fn': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora'), 'self.filehandler.open_file': ('local', <bound method FileHandler.wrapper of <gui.filehandling.FileHandler object at 0x429630d0>>)}
  File "/opt/mypaint/share/mypaint/gui/drawwindow.py", line 40, wrapper(self=<gui.filehandling.FileHandler object at 0x429630d0>, *args=(u'/home/user/MyDocs/MyPaint/Stick-figure.ora',), **kwargs={})
            try:
                func(self, *args, **kwargs)
                # gtk main loop may be called in here...
  variables: {'self': ('local', <gui.filehandling.FileHandler object at 0x429630d0>), 'args': ('local', (u'/home/user/MyDocs/MyPaint/Stick-figure.ora',)), 'func': ('local', <function open_file at 0x428b1bf0>), 'kwargs': ('local', {})}
  File "/opt/mypaint/share/mypaint/gui/filehandling.py", line 236, open_file(self=<gui.filehandling.FileHandler object at 0x429630d0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora')
            try:
                self.doc.model.load(filename, feedback_cb=self.gtk_main_tick)
            except document.SaveLoadError, e:
  variables: {'self.doc.model.load': ('local', <bound method Document.load of <lib.document.Document instance at 0x42933cb0>>), 'feedback_cb': (None, []), 'self.gtk_main_tick': ('local', <function gtk_main_tick at 0x428b1bb0>), 'filename': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora')}
  File "/opt/mypaint/share/mypaint/lib/document.py", line 358, load(self=<lib.document.Document instance at 0x42933cb0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora', **kwargs={'feedback_cb': <function gtk_main_tick at 0x428b1bb0>})
            try:
                load(filename, **kwargs)
            except gobject.GError, e:
  variables: {'load': ('local', <bound method Document.load_ora of <lib.document.Document instance at 0x42933cb0>>), 'kwargs': ('local', {'feedback_cb': <function gtk_main_tick at 0x428b1bb0>}), 'filename': ('local', u'/home/user/MyDocs/MyPaint/Stick-figure.ora')}
  File "/opt/mypaint/share/mypaint/lib/document.py", line 676, load_ora(self=<lib.document.Document instance at 0x42933cb0>, filename=u'/home/user/MyDocs/MyPaint/Stick-figure.ora', feedback_cb=<function gtk_main_tick at 0x428b1bb0>)
                ani_data = z.read('animation.xsheet')
                self.ani.str_to_xsheet(ani_data)
            except KeyError: #ani
  variables: {'self.ani.str_to_xsheet': ('local', <bound method Animation.str_to_xsheet of <lib.animation.Animation object at 0x42980ef0>>), 'ani_data': ('local', '[\n    [\n        false, \n        "", \n        4\n    ], \n    [\n        false, \n        "", \n        4\n    ], \n    [\n        false, \n        "", \n        5\n    ], \n    [\n        false, \n        "", \n        6\n    ], \n    [\n        false, \n        "", \n        7\n    ], \n    [\n        false, \n        "", \n        8\n    ], \n    [\n        false, \n        "", \n        9\n    ], \n    [\n        false, \n        "", \n        10\n    ], \n    [\n        false, \n        "", \n        11\n    ], \n    [\n        false, \n        "", \n        12\n    ], \n    [\n        false, \n        "", \n        13\n    ], \n    [\n        false, \n        "", \n        14\n    ], \n    [\n        false, \n        "", \n        15\n    ], \n    [\n        false, \n        "", \n        16\n    ], \n    [\n        false, \n        "", \n        17\n    ], \n    [\n        false, \n        "", \n        18\n    ], \n    [\n        false, \n        "", \n        19\n    ], \n    [\n        false, \n        "", \n        20\n    ], \n    [\n        false, \n        "", \n        21\n    ], \n    [\n        false, \n        "", \n        22\n    ], \n    [\n        false, \n        "", \n        23\n    ], \n    [\n        false, \n        "", \n        24\n    ], \n    [\n        false, \n        "", \n        25\n    ], \n    [\n        false, \n        "", \n        26\n    ]\n]')}
  File "/opt/mypaint/share/mypaint/lib/animation.py", line 94, str_to_xsheet(self=<lib.animation.Animation object at 0x42980ef0>, ani_data='[\n    [\n        false, \n        "", \n        4\n ...[\n        false, \n        "", \n        26\n    ]\n]')
                if layer_idx is not None:
                    cel = self.doc.layers[layer_idx]
                else:
  variables: {'layer_idx': ('local', 26), 'cel': ('local', <lib.layer.Layer instance at 0x42b9cfa8>), 'self.doc.layers': ('local', [<lib.layer.Layer instance at 0x42bbd9b8>, <lib.layer.Layer instance at 0x42bba580>, <lib.layer.Layer instance at 0x42bb72d8>, <lib.layer.Layer instance at 0x42bb7058>, <lib.layer.Layer instance at 0x42ba57b0>, <lib.layer.Layer instance at 0x42bb4288>, <lib.layer.Layer instance at 0x42bac080>, <lib.layer.Layer instance at 0x42bac828>, <lib.layer.Layer instance at 0x42bac698>, <lib.layer.Layer instance at 0x42bac530>, <lib.layer.Layer instance at 0x42bac3a0>, <lib.layer.Layer instance at 0x42bac210>, <lib.layer.Layer instance at 0x42bac850>, <lib.layer.Layer instance at 0x42b9cf58>, <lib.layer.Layer instance at 0x42ba5b48>, <lib.layer.Layer instance at 0x42bac3c8>, <lib.layer.Layer instance at 0x42bac238>, <lib.layer.Layer instance at 0x42ba52d8>, <lib.layer.Layer instance at 0x42ba50d0>, <lib.layer.Layer instance at 0x42ba5080>, <lib.layer.Layer instance at 0x42ba5be8>, <lib.layer.Layer instance at 0x42ba5918>, <lib.layer.Layer instance at 0x42ba5648>, <lib.layer.Layer instance at 0x42ba5378>, <lib.layer.Layer instance at 0x42ba5030>, <lib.layer.Layer instance at 0x42b9cfa8>])}
IndexError: list index out of range
Every single animation file I save refused to load with the above error message. I tried both "Recent files" as well as starting the file from the terminal. Opening the normal way wouldn't work as the new and improved 'filehandling' layout prevents reaching the OK button.

First I thought it was because I added and removed frames, but it also happens when I leave the original setup of 24 frames as is.

Thanks nevertheless. Would be amazing to get this to work.

Edit: Just a thought. I believe I remember reading somewhere that xsheet required python2.6. Not newer, not older. If that's true, could our python2.5 be the cullprit?

I get the same error but it loads up for me, what you have to do is not press the quit button on the "Bug Detected" dialog, instead tap on the top of the screen to make that dialog go away.

Before Sharp66 posted this patch, I used to use xsheet-mypaint on Easy Debian from there https://gitorious.org/mypaint/slowdog-xsheet-mypaint (or I think one of these clones https://gitorious.org/mypaint/xsheet-mypaint/community) And I believe it had the same issue on the N900 (bug warning when saving, but I'm not 100% sure if they were the same bugs, I'll have to check).
the save as avi option worked on ED version, so maybe it could be worth comparing the two?

Code:
Opening the normal way wouldn't work as the new and improved 'filehandling' layout prevents reaching the OK button. :D
have you tried clicking on the thumbnail?
 

The Following 2 Users Say Thank You to lonk For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#163
Lol @lonk

I had not tried that. I just assumed it wouldn't work and clicked to close.
Second question as well: I just realized how lazy the terminal has actually made me. The moment a gui doesn't work, I turn to the thing I know will do what I want.

Offtopic, but only by a bit: Has anyone succeeded in compiling the xsheet for regular machines? I can't get it to compile as it keeps nagging me about a Fortran 90 compiler it wants to use.

Code:
Could not locate executable g77
Found executable /usr/bin/f77
gnu: no Fortran 90 compiler found

Last edited by anthonie; 2014-01-13 at 22:52.
 

The Following User Says Thank You to anthonie For This Useful Post:
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#164
you have to click on thumbnail to open a file or outside the dialog to cancel.
here is the updated version that will work for save as swf, flv.
I don't know why save as avi did not.
ffmpeg and imagemagick must be installed to work.
I think imagemagick could be avoided with some changes.

edit:
in version 2

you can change the fps
saves xsheet animation file not just ora.
still have saving problems
merging cells,layers problems
Attached Files
File Type: zip mypaint_animation1.zip (51.1 KB, 90 views)
File Type: zip mypaint_animation2.zip (65.6 KB, 84 views)

Last edited by SHARP66; 2014-01-23 at 12:23.
 

The Following 4 Users Say Thank You to SHARP66 For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#165
Originally Posted by SHARP66 View Post
you have to click on thumbnail to open a file or outside the dialog to cancel.
here is the updated version that will work for save as swf, flv.
I don't know why save as avi did not.
ffmpeg and imagemagick must be installed to work.
I think imagemagick could be avoided with some changes.

edit:
in version 2

you can change the fps
saves xsheet animation file not just ora.
still have saving problems
merging cells,layers problems
Thanks a lot! I have been playing a lot with this, much to my joy. It took a while to figure out how it works, though and for some buttons, it's unclear to me what they do. As the whole concept of animation, in practical sense, is kind of new to me. Anyone able to give a button-cheat-sheet or something?

The merging of cells and layers. I hadn't noticed cells could be merged, but could you share what the problems are, that you bump into?
 

The Following User Says Thank You to anthonie For This Useful Post:
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#166
Originally Posted by anthonie View Post
The merging of cells and layers. I hadn't noticed cells could be merged, but could you share what the problems are, that you bump into?
in the layers window if you merge a cel to a layer or delete a cel you can not edit anymore the animation window.
you can not draw a background. for your animation because the layer wont be saved.
You can have background for your animation only if you first draw the background and than duplicate in all frames and than draw the moving things.

Last edited by SHARP66; 2014-01-18 at 18:57.
 

The Following User Says Thank You to SHARP66 For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#167
Originally Posted by SHARP66 View Post
in the layers window if you merge a cel to a layer or delete a cel you can not edit anymore the animation window.
you can not draw a background. for your animation because the layer wont be saved.
You can have background for your animation only if you first draw the background and than duplicate in all frames and than draw the moving things.
For clarity: I use the first version of the animation files posted in this thread. And it's probably all open doors, but for clarities sake I'll write anyway.

I did notice some oddities that, with a bit of planning could be worked around.

For now, I use one background per file / animation sequence. (so, one .ora file has one sequence only)

The regular MyPaint layer is used as background / scenery and stays editable.

The first of the animation cells is static. What I draw in there stays. But after that, I sequence my moving objects one by one and that does seem to work.

Oddities: After deleting a cell some cells are no longer editable. Work around: Don't delete frames and simply use the 24 given when you first start a file. If you add frames and your last cell is filled with an image, that last frame will move postition to become once again the last frame. So, I only add a frame after an empty one.

Naturally I'd like to be able to use more than one background per sequence, so I don't need to start a new file.

Also: How do I export this animation?

Save as well as export don't allow mpg/mpeg.
 

The Following User Says Thank You to anthonie For This Useful Post:
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#168
in the original XSHEET-MYPAINT this xterminal commands are used to save animation as avi
png-s to jpg-s and than jpg-s to avi

convert -resize 800 -quality 100 -background white -flatten png_file_in jpg_file_out

ffmpeg -r str(vid_fps) -b 1800 -y -i jpgs_in out_filename

Saving as swf, flv works great

What is wrong with this code? Somebody can write a good code for saving multiple jpgs to avi or whatever video format.
 

The Following User Says Thank You to SHARP66 For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#169
Originally Posted by SHARP66 View Post
in the original XSHEET-MYPAINT this xterminal commands are used to save animation as avi
png-s to jpg-s and than jpg-s to avi

convert -resize 800 -quality 100 -background white -flatten png_file_in jpg_file_out

ffmpeg -r str(vid_fps) -b 1800 -y -i jpgs_in out_filename

Saving as swf, flv works great

What is wrong with this code? Somebody can write a good code for saving multiple jpgs to avi or whatever video format.
Not sure if I understand the question correctly, let's hope I did...

Use %(n)d for numbered items that need to processed in order. N is the number of digits the filename needs to have. So if you have filenames with 4 as well as 3 digits and you only want the ones with 3 digits in their filename to be processed, N would be 03.
If you have filenames that have nothing but digits and their order is sequential (IIRC ffmpeg assumes no more frames if their is a bump in numbers), you don't need the N at all and %d should be enough.
Id est: We have the filenames 001.jpg to 020.jpg

Code:
ffmpeg -i %d.jpg -s 1024x768 output.mp4
Two questions for you (I promise to stop asking questions asap)

1. Is there a typo in the code for saving the .flv files? It saves mine as flw which does not seem to be the same as flv.

2. I managed to export the animation to swf, but there is no background. I have the same problem with the ffmpeg method by the way.

What's the method to keep a background visible all the time and only use animation cells for the movable parts?

Last edited by anthonie; 2014-01-22 at 12:28.
 

The Following User Says Thank You to anthonie For This Useful Post:
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#170
Originally Posted by anthonie View Post
1. Is there a typo in the code for saving the .flv files? It saves mine as flw which does not seem to be the same as flv.

2. I managed to export the animation to swf, but there is no background. I have the same problem with the ffmpeg method by the way.
1.yes man there is a typo....flv not flw
2.the background won't be saved, because in the original is no code for saving layers...only animation frames. I will try to fix that.
Originally Posted by anthonie View Post
What's the method to keep a background visible all the time and only use animation cells for the movable parts?
I think the only way is to first make the background as a layer and copy paste on all frames before you draw on frames.

edit:
I know how numbering works on ffmpeg
that code of yours(save as mp4) you tried out on maemo?

Last edited by SHARP66; 2014-01-22 at 14:37.
 

The Following User Says Thank You to SHARP66 For This Useful Post:
Reply

Tags
mypaint


 
Forum Jump


All times are GMT. The time now is 17:53.