Still not seeing anyone on IRC so find my propoal in this email for your comment and consieration.
NASA Jeff <[email protected]> Fri, 15 May 2020 09:07:53 +0100
| Newsgroups | gmane.comp.graphics.inkscape.devel |
|---|---|
| Message-ID | <CAN-MDmqP-ZMSQYOg1pZipVLsqjKFrO7kWiQJG5W9THfE5_Mwdw@mail.gmail.com> |
--===============2542172928569358960== Content-Type: multipart/alternative; boundary="0000000000000a0cf505a5ab5002" --0000000000000a0cf505a5ab5002 Content-Type: text/plain; charset="UTF-8" I'm currently looking at implementing SVG animation in inkscape. there are three languages this could be done in and SMIL looks like the best bang for buck, but unfortunately, it's not supported by Microsoft and google have plans to drop it as soon as a replacement is found this leaves CSS and javascript I don't think CSS will really cut it and U don't really want to waste my time creating something that isn't actually that good so that leaves us with javascript, which is what I first intended to use. that should be too bad aside from all the code analysis required to infer the animation for editing. that shouldn't be too bad if the script is kept clean and tidy and any complexity offloaded to functions so animation script isn't a piecemeal meal mix of function ands logic for java script I intened to implement a 'macro' engine first, making every action scriptable, as this is a prerequisite for being able to animate it implementing a macro engine aka making inkscape scriptable and capturing UI events is pretty much the same as undo/redo functionality except you don't have worry about creating reverse functionality. limiting Inkscape so it can only import nice clean tidy inkscape generated animated SVG seems like a good path to follow to start with and should avoid too much of the headache f interpreting the javascript so that the animation information can be extracted. I would then create a script to sanitize and general animated SVG file so that it is in inkscapes clean style. this can then become chained and made seamless part of opening any old animated SVG file in inkscape. a CSS to Javascript converter would also be a nice feature to have though it may come to a point where uyi integration is so comprehensive adding support for animated CSS is trivial and so both javascript and css become supported. --0000000000000a0cf505a5ab5002 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I'm currently looking at implementing SVG animation in= inkscape.<br>there are three languages this could be done in and SMIL look= s like the best bang for buck, but unfortunately, it's not supported by= Microsoft and google have plans to drop it as soon as a replacement is fou= nd=C2=A0<br>this leaves CSS and javascript=C2=A0<br>I don't think CSS w= ill really cut it and U don't really want to waste my time creating som= ething that isn't actually that good=C2=A0<br>so that leaves us with ja= vascript, which is what I first intended to use. that should be too bad asi= de from all the code analysis required to infer the animation for editing. = that shouldn't be too bad if the script is kept clean and tidy and any = complexity offloaded to functions so animation =C2=A0script isn't a pie= cemeal meal mix of function ands logic=C2=A0<br>for java script I intened t= o implement a 'macro' engine first, making every action scriptable,= as this is a prerequisite for being able to animate it=C2=A0<br>implementi= ng a macro engine aka making=C2=A0inkscape scriptable and capturing UI even= ts is pretty much the same as undo/redo functionality except you don't = have worry about creating reverse functionality.<br>limiting Inkscape=C2=A0= so it can only import nice clean tidy inkscape generated animated SVG seems= like a good path to follow to start with and should avoid too much of the = headache f interpreting the javascript so that the animation information ca= n be extracted.<br>I would then create a script to sanitize and general ani= mated SVG file so that it is in inkscapes clean style.<br>this can then bec= ome chained and made seamless part of opening any old animated SVG file in = inkscape.<br>a CSS to Javascript converter would also be a nice feature to = have though it may come to a point where uyi integration is so comprehensiv= e adding support for animated CSS is trivial and so both javascript and css= become supported.</div> --0000000000000a0cf505a5ab5002-- --===============2542172928569358960== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2542172928569358960== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Inkscape-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/inkscape-devel --===============2542172928569358960==--