Riccardo,
On 2015-11-04 17:32, Riccardo Bernardini wrote:
About this, recently I wrote a non-interactive (CLI) program that is somehow similar (but not equal) to what is asked here. The code currently is not "production quality," but "personal use quality" :-), but if there is some interest I can put it in shape and share it. BTW, I wrote this program while I was doing animations with OpenShot too...
The approach is a bit different from the approach used by Interpolate. As I understand, Interpolate interpolates the positions of the nodes of a path, while in my program I interpolate the transformation mapping an object in another.
In order to use my program, you create the first frame as you like (and save it to an SVG file, say foo-00.svg), then create the last frame by transforming one or more objects (currently only roto-translations + uniform scale changes are accepted) and save it to, say, foo-25.svg. Take note of the XML ids of the object you transformed. Then you call
svg_animator foo-00.svg foo-25.svg <id> [<id> ...]
where <id> is, of course, the id of the object to be animated. The program will create files foo-nn.svg with nn ranging from 01 to 24. (Note: the program is "smart" enough to recognize "numbered names," as OpenShot does, but you are not limited to this format.)
The advantage of this approach is that it applies to any type of object, not only paths. A drawback is the limited set of transformation allowed, which is fairly general anyway. If you are interested in theoretical details, I'll add that the main problem in allowing more transformations is that you need to find an n-th "root" of the transformation mapping the first frame in the last one and in some case such a transformation could not exist. For example, if you flip your object around the vertical axis, what is the 25-th root of this transformation? If you are limited to 2D transformation, such a "root" does not exist.
As said above, I wrote this to "scratch an itch of mine" and currently it is not ready to be shared in the wild. Moreover, it is suited to my own needs. Anyway, if there is some interest, I can try to upgrade it to "sharable quality."
I would certainly be interested in testing it out! What language is it written in? I am generally happy with a bash prompt . .
Many thanks,
Phil.
-- Riccardo Bernardini Tel : +39-0432-55-8271 skype : bernardini.riccardo LinkedIn : https://www.linkedin.com/in/riccardobernardini ________________________________________ Da: Philip Rhoades [phil@...1587...] Inviato: mercoledì 4 novembre 2015 07.04 A: Bryce Harrington Cc: inkscape-devel@lists.sourceforge.net Oggetto: Re: [Inkscape-devel] Board Meeting @ Friday Nov 6th, 2015
Bryce,
On 2015-11-02 16:06, Bryce Harrington wrote:
On Mon, Nov 02, 2015 at 01:45:10AM +1100, Philip Rhoades wrote:
Bryce,
On 2015-11-01 20:31, Bryce Harrington wrote:
On Fri, Oct 30, 2015 at 02:44:30PM +1100, Philip Rhoades wrote:
Bryce,
On 2015-10-30 14:27, Bryce Harrington wrote:
Hi all,
Last month's meeting went well, and we decided to have another in early November at a similar time and place.
We'll be holding an Inkscape Committee meeting on Friday the 6th of November, on #inkscape-devel, at 1900 UTC (Noon PDT / 9pm CEST)
http://wiki.inkscape.org/wiki/index.php/Board_Meetings
Agenda is:
- Code of Conduct & Privacy Policy
- Funded development
Is it appropriate to suggest enhancements that I am prepared to pay for at such a meeting?
It is appropriate, yes.
OK, cool - should I describe on this list what I am thinking of - to give people time to think about the idea or should I just turn up at the meeting?
Either way's fine. Our meetings focus just on discussion and planning; formal voting is done on the board mailing list.
You're welcome to send any materials you'd like the board to review ahead of time to inkscape-board@...3291...
For producing basic animations by means of using Inkscape's "Interpolation" feature:
Rather than tediously exporting individual PNG files from the resulting interpolated drawings, for me, it is better to save the individual SVGs. I can import the SVGs into OpenShot for example which lets me use SVG "frames". so is it possible to script the interpolation process so that the individual, first, interpolated and last objects get written to separate SVG files somehow? I can do this manually by massaging the current interpolated SVG file but just being able to do:
Interpolate -> Write to separate files
ie so each file would contain one of:
- the source PATH that the interpolations were constructed from
- only one of the PATH statements for each of the interpolations
- the destination PATH that the interpolations were constructed from
- the other objects in the drawing
(So for an interpolation number of 50, there would be a total of 52 separate files created).
would save me a LOT of time . .
I would have thought that this exercise would have been fairly straight forward but I don't know really and I have no idea how much the effort would be worth in dollar terms - if someone is motivated to do the work and wants to suggest an amount - I will see if I can afford it . .
The other thing I was going to mention is that the interpolations seem to work for simple, single objects but there seem to be problems for grouped (then "Object to Path") objects?
Thanks,
Phil.
-- Philip Rhoades
PO Box 896 Cowra NSW 2794 Australia E-mail: phil@...1587...
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel