Live Path Effects - how to specify in SVG?
![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
Hi all,
I already have live effects working for a bit (see the live-path-effects branch). Now I want to focus on how to write things to SVG. On the following wiki page, I have put some alternatives that I found in a mail discussion a year ago. http://wiki.inkscape.org/wiki/index.php/LivePathEffects_Discussion
What do you think is the best solution? The defs and inkscape:patheffect ones are my favorites.
Feel free to svn checkout the branch and play around! (see \share\examples\live-path-effects.svg)
Cheers, Johan
![](https://secure.gravatar.com/avatar/ea82b036a537a86ff8f886e89f2c5944.jpg?s=120&d=mm&r=g)
On Tue, 2007-05-08 at 21:45 +0200, J.B.C.Engelen@...1578... wrote:
I already have live effects working for a bit (see the live-path-effects branch). Now I want to focus on how to write things to SVG. On the following wiki page, I have put some alternatives that I found in a mail discussion a year ago. http://wiki.inkscape.org/wiki/index.php/LivePathEffects_Discussion
What do you think is the best solution? The defs and inkscape:patheffect ones are my favorites.
Feel free to svn checkout the branch and play around! (see \share\examples\live-path-effects.svg)
I like the <defs> section one. But, what are the "3D"s in front of the strings?
--Ted
![](https://secure.gravatar.com/avatar/dc940f48c5635785f32941f1fbe6b601.jpg?s=120&d=mm&r=g)
On May 8, 2007, at 2:17 PM, <J.B.C.Engelen@...1578...> wrote:
I removed them, was a copy paste error (for some reason the mail archive has a lot of '3D' in there).
That's an artifact of the encoding. The '=' is used to escape things into hex, and $3D is the hex value of '='. So that's more the raw source formatting being seen.
![](https://secure.gravatar.com/avatar/e1ef55136ae45d648254935a18e9acb7.jpg?s=120&d=mm&r=g)
I like the inkscape:patheffect, but also need to add the "inkscape:original-d" on the svg:path, like was did on the "Simple idea"
Path Effects defs on the defs section will need a garbage collection to clean unset Path Effects or the defs will be a garbage deposit. (When we delete a element with gradients its def still on defs section)
Johan, the Live Path Effect script will recive the full SVG to change/create the path and other elements?
I'm seeing 2 ways: - The script recive only the path (Only the "d" attribute) Will be very fast to get, change and return. And it can be the most interesting way for a lot of Live Path Effects. - The script recive the full SVG file and return a new full SVG (like all other effects). It will be useful to create effects that generate elements based on the path like clones of some Xara Live efects. (the random mosaic or creation is a good example of that)
I thik is very easy to give this 2 ways for the developers. The inkscape:patheffect tag can have a "informatin method" attribute :-) <inkscape:patheffect effect="org.inkscape.patheffect.a" information="(svg|path)">
Good work Johan! I realy want so much to write Live Path Effects! :-D
Cheers, Aurium
On 5/8/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
Hi all,
I already have live effects working for a bit (see the live-path-effects branch). Now I want to focus on how to write things to SVG. On the following wiki page, I have put some alternatives that I found in a mail discussion a year ago. http://wiki.inkscape.org/wiki/index.php/LivePathEffects_Discussion
What do you think is the best solution? The defs and inkscape:patheffect ones are my favorites.
Feel free to svn checkout the branch and play around! (see \share\examples\live-path-effects.svg)
Cheers, Johan
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
Aurélio A. Heckert wrote:
Johan, the Live Path Effect script will recive the full SVG to change/create the path and other elements?
Sorry for the wicked late reply. :( Your mail got snowed under, I'm very sorry.
For now the path effect code will only receive the path, not the other svg elements. Other live effect types are possible of course but I first want to get the _path_ effects fully functioning. After GSoC... who knows? :)
participants (4)
-
unknown@example.com
-
Aurélio A. Heckert
-
Jon A. Cruz
-
Ted Gould