Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: knorre on March 28, 2018, 07:34:49 AM

Title: how to remove vector-effect:non-scaling-stroke?
Post by: knorre on March 28, 2018, 07:34:49 AM
 :?: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).



Title: Re: how to remove vector-effect:non-scaling-stroke?
Post by: Lazur on March 28, 2018, 02:57:28 PM
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.
Title: Re: how to remove vector-effect:non-scaling-stroke?
Post by: knorre on March 28, 2018, 03:47:16 PM
Lazur, thank you! It is appeared, that the copy-pasting of the style does work in my case.