gotcha

Author Topic: how to remove vector-effect:non-scaling-stroke?  (Read 2512 times)

March 28, 2018, 07:34:49 AM
Read 2512 times

knorre

  • Sr. Newbie

  • Offline
  • **

  • 2
 :?:Please, help!

what is the convenient way to remove "vector-effect:non-scaling-stroke" from multiple objects.
I have some files with multiple objects. Some of them have this attribute while the others do not.
It is very annoying: zooming the figure scale the strokes only for the part of the object. Moreover, it produces unpredictable result while exporting to png.

I can manually remove the attribute with the XML editor (Ctr-Shift-X), but in the case of multiple objects, it takes too many time. Is there any standard (faster) way to remove this tag from the style for multiple objects?

The objects were generated by QtiPlot and then imported to Inkscape. (see example in attachment, try to zoom in and out).



  • 0.92
  • xubuntu 17.10

March 28, 2018, 02:57:28 PM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

As a "brute-force" solution I'd try opening the svg in a notepad like notepad++, where you can select all the corresponding attributes at once and replace them with an empty space.

In inkscape selecting all opjects with the same stroke style is possible as well as pasting the style from clipboard -which may or may not work depending on if the strokes have different stroke widths/colours etc.
Pasting a style requires copying an object with a preferable style (Ctrl+C), then when other objects are selected, Ctrl+Alt+V can paste in the style.

March 28, 2018, 03:47:16 PM
Reply #2

knorre

  • Sr. Newbie

  • Offline
  • **

  • 2
Lazur, thank you! It is appeared, that the copy-pasting of the style does work in my case.


  • 0.92
  • xubuntu 17.10