"baking" the object transforms into the vertices ?

General discussions about Inkscape.
vlad2048
Posts: 5
Joined: Tue Mar 01, 2011 3:03 pm

"baking" the object transforms into the vertices ?

Postby vlad2048 » Wed Mar 02, 2011 10:13 am

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.

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: "baking" the object transforms into the vertices ?

Postby Simarilius » Thu Mar 03, 2011 5:47 am

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

vlad2048
Posts: 5
Joined: Tue Mar 01, 2011 3:03 pm

Re: "baking" the object transforms into the vertices ?

Postby vlad2048 » Thu Mar 03, 2011 10:25 am

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

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: "baking" the object transforms into the vertices ?

Postby Simarilius » Fri Mar 04, 2011 5:13 am

hmmm, setting that to optimised should be getting rid of them when you move the shape...

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: "baking" the object transforms into the vertices ?

Postby ~suv » Fri Mar 04, 2011 7:51 am

vlad2048 wrote: I still see translation transformations. Even after nudging (…)
Not all objects can use optimized transforms:
  • 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…
vlad2048 wrote:(…) or doing save as
'Save as…' does not rewrite path data by itself, you have to trigger a rewrite of the path data manually.


Return to “General Discussions”