Exporting Follow Path SVGs with rotation #326
pgilfernandez
started this conversation in
Ideas
Replies: 1 comment
-
Further "research": the That is, following up there is a project that exports perfectly as it is without external modification:
Cheers |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you may already know, I'm very interested in animations for web. Since I met Friction (no much time ago) I've been exploring all possible features that Friction has to export SVGs (while encouraging you to include macOS builds, indeed, hehehe) and I'm both surprised on how well it works and the number of SVG features already included. My list may grow up but it's pretty impressive:
I'm creating examples for each of them and I'm planning to help you with the Docs, at least in this regard.
Well, this preface was to let you know how much I'm interested in using animation for web (animated SVG), not only for my projects but also for including Friction on my lessons (yes, I'm teacher at a Vocational High School about Graphic Arts).
My only "blocker" to feel that Friction is mostly fully featured now is the "rotation of the follow path" feature... So, I've been doing some research and I would like to help you finish it so that it is included in v1.0. It's about to see if my help is valuable and enough...
Let's get into it:
So, I just created 3 Friction projects (with some differences), exported them to SVG (using the
svg-follow-path
branch indeed), study the output code and created "manually" the right way to implement it. And here is why I'm writing all this much, I may found a pretty easy solution as the rotation feature per se is so simple to be applied to the<animateMotion>
tag, a simple attribute with an auto value, that is,rotation="auto"
.The tricky part are the "transform" matrices, as the
object
that follows thepath
must have an unique "transform" matrix. In case it's grouped and we are using few "transforms", therotation="auto"
attribute doesn't translate into an exact result.Well, that is more or less my findings but you may understand it better by reading the SVG code in my examples:
Here are all the SVGs and
.friction
files: svg-follow-path.zipI would suggest you to dig into the "example 3" first as it is the one that I think better shows the problem and the way to fix it...
I hope it helps or start with something that we can work with in order to be able to implement it =)
Cheers
Beta Was this translation helpful? Give feedback.
All reactions