Animation

Flesh out your ideas for new or improved Inkscape features before submitting a request.
dante
Posts: 6
Joined: Fri Mar 28, 2008 4:42 pm

Animation

Postby dante » Tue Apr 08, 2008 6:23 am

Are there any plans to add animation capability to Inkscape?
Just wondering...

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Animation

Postby sas » Tue Apr 08, 2008 6:48 am

Yes, see the roadmap.

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: Animation

Postby heathenx » Tue Apr 08, 2008 8:26 am

A while back Aho recommended animeasy (http://sourceforge.net/project/platformdownload.php?group_id=188713) for Linux only users. I recommend it since it's all that we have at the moment. You can also use swftools and manually export each frame. It's a pain in the rear but that's better than nothing too.

User avatar
nitrofurano
Posts: 18
Joined: Fri Jul 18, 2008 5:42 am

Re: Animation

Postby nitrofurano » Fri Jul 18, 2008 5:55 am

recently i got impressed with swftools swfc converter, and how it can be useful for inkscape animation, since i think the swfc format can be very similar to an animated .svg

for showing how simple the swfc format is, it's one example about one with 10000 frames generated from a sdlBasic script: http://img99.imageshack.us/my.php?image=z10000apw1.swf

(a note: Macromedia/Adobe Flash used to crash when importing more than 1000 .ai drawing sequence - there is where Inkscape can set a huge goal as well)

maybe a python plugin could be enough to make a svg export, just like used to import/export .ai files?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Animation

Postby microUgly » Fri Jul 18, 2008 9:22 am

So you can use SVG file with swftools now?

User avatar
nitrofurano
Posts: 18
Joined: Fri Jul 18, 2008 5:42 am

Re: Animation

Postby nitrofurano » Sat Jul 19, 2008 8:41 pm

not yet, this animation were done only with a simple code like this, no svg there yet - just for showing how swfc and svg animated formats can have similar information to be converted between both:

Code: Select all

#! /usr/bin/sdlbrt
fout$="z.swfc":amnt=100000:xed=320:yed=240:setdisplay(512,48,32,1):paper(8^8-1):ink(0):pen(0):cls
open fout$ for output as #1
print #1,".flash bbox="+str$(xed)+"x"+str$(yed)+" version=3 fps=25 name=\"z.swf\" compress":print #1,".frame 1"
for i=2 to amnt+1
  print #1,".outline ht_outline"+str$(i)+":"
  print #1,"M "+str$(rnd(xed))+" "+str$(rnd(yed))+" L "+str$(rnd(xed))+" "+str$(rnd(yed))+" L "+str$(rnd(xed))+" "+str$(rnd(yed))+" L "+str$(rnd(xed))+" "+str$(rnd(yed))
  print #1,".end":print #1,".filled ht"+str$(i)+" outline=ht_outline"+str$(i)+" fill=#eeddcc color=#eeddcc"
  print #1,".put ht"+str$(i):print #1,".frame "+str$(i):print #1,".del ht"+str$(i)
  next:print #1,".end":close #1

(basic and python coders may uderstand what this code can do...)

and the result for swfc can look like: (a small result with few frames, which i think can be converted to .swf from swfc)

Code: Select all

.flash background="#2468ac" bbox=320x240 version=3 fps=25 name="z_10000a.swf" compress
.frame 1
.outline ht_outline2:
M 135 214 L 98 84 L 313 160 L 207 7
.end
.filled ht2 outline=ht_outline2 fill=#eeddcc color=#eeddcc
.put ht2
.frame 2
.del ht2
.outline ht_outline3:
M 38 206 L 245 15 L 11 204 L 104 2
.end
.filled ht3 outline=ht_outline3 fill=#eeddcc color=#eeddcc
.put ht3
.frame 3
.del ht3
.outline ht_outline4:
M 64 69 L 90 21 L 125 77 L 303 163
.end
.filled ht4 outline=ht_outline4 fill=#eeddcc color=#eeddcc
.put ht4
.frame 4
.del ht4
.end


for making a conversion, i'm looking for svg animated examples could provide ideas about how a simple converter (coded in python for example?) could do this...


Return to “Inkscape Ideas”