I'm looking to simplify my code that loads .svg files.
Is it possible to tell Inkscape to nullify the object's transform attribute and adjust the vertices accordingly ?
This way I won't have to deal with objects transforms in my code.
"baking" the object transforms into the vertices ?
-
- Posts: 626
- Joined: Wed Jun 06, 2007 2:37 am
Re: "baking" the object transforms into the vertices ?
you can turn off transforms in the prefs, if you then move anything the transform will bake into it, just select then nudge left then right with the arrows
Re: "baking" the object transforms into the vertices ?
Thanks but where can I turn off the transforms in the Prefs ?
I tried File->Inkscape Preferences->Transforms-> Optimized / Preserved but it doesn't make a difference. I still see translation transformations. Even after nudging or doing save as
I tried File->Inkscape Preferences->Transforms-> Optimized / Preserved but it doesn't make a difference. I still see translation transformations. Even after nudging or doing save as
-
- Posts: 626
- Joined: Wed Jun 06, 2007 2:37 am
Re: "baking" the object transforms into the vertices ?
hmmm, setting that to optimised should be getting rid of them when you move the shape...
Re: "baking" the object transforms into the vertices ?
Not all objects can use optimized transforms:vlad2048 wrote: I still see translation transformations. Even after nudging (…)
- groups will keep them -> ungroup, nudge and group again (watch out for nested transformed groups)
- shapes (except rectangles) always use preserved transforms (workaround: convert to path and nudge)
- clones (workaround - unlink - not very useful)
- any object with a filter effect applied will use preserved transforms
- possibly others…
'Save as…' does not rewrite path data by itself, you have to trigger a rewrite of the path data manually.vlad2048 wrote:(…) or doing save as