Resize vector

Hello. I rly confused.
When i resize my vector (transform)
The thickness of my line also bigger.
Can we lock the thickness of our vector ? So if i resize the thickness still same.

Help me pls, :sob::sob:

:slight_smile: Hello and welcome to the forum @Ivana!

If you haven’t flattened your picture before scaling, so your vector layer is still a vector layer, then nothing bad has happened, you can adjust the thickness of every single stroke.
You have to select the “Select Shapes Tool”, that is the top-left tool, and it looks like an arrow. After you have selected it you have to go to the “Tool Options”-Docker, it is usually hidden under the color wheel, it is a tab. Select this tab then you’ll see the Tool Options, and there you have to select the option I marked with a circle in my screenshot, then you can adjust the thickness of every vector line you’ve drawn, just adjust the setting called “Thickness” after you have selected the stroke you want to adjust.

Michelist

Add/Edit: I forgot to mention that my Tool Options Docker looks somewhat different because I modded my Krita a little bit.

What I would like to add is that if you paint a picture on a balloon, then it will change its size when you blow up the balloon or deflate it, and so it happens with a picture in Krita, if you scale the whole picture, then everything on it scales with it. At least, I don’t know it otherwise.

Michelist

When you use the Transform tool on a vector object, the vector itself is not transformed.
The transform is applied to the raster projection of the vector object. This has the consequence that line thickness, in the raster projection on the canvas, changes.

If you select a vector object with the Select Shapes tool, you can move, scale and rotate it and the line thickness will not be affected because the vector object itself is changed.

There is a small problem with Layer Export of a vector layer: Any scaling transform is not included in the exported .svg file unless you first Save then Close then re-Open the .kra file.

Unless you want the raster scaling effect then just use the Select Shapes tool and the Edit Shapes tool.

I think what is asked for here is relative scaling mode, like Blender has. There you can scale stuff but make it only affect certain axes, for example. So you could scale a vector line larger without affecting the thickness, meaning the thickness gets actually smaller relative to everything else (so it stays the same in “pixels”). Krita can’t do this, however.

I see that as a landscape painter I simply don’t work enough with vectors, if anything I scale the whole image. So it didn’t even occur to me here to interpret this question differently.

Michelist

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Ivana,
The way to resize a vector, and preserve the line thickness, is to use the shape tool instead of the transform tool. PLUS, you may also need to uncheck the ‘scale styles’ tool option, and check the ‘global coordinates’ option. Otherwise, even when using the shape tool, it will still change the line thickness with respect to other vector shapes. These checkboxes can be found, usually on the right side docks, on the shape tool options panel, on the position tab.
Shape Tool Options

4 Likes

Thank you, @micbay.

Thanks, unfortunately I found out that Scale Styles is auto-checked and greyed out (so no way to uncheck it) during batch selection (selecting 2+ objects). It seems that Krita cannot just simulate a combination of scaling that are no changing scale styles… It has to scale the whole selection including line thickness.

Creating a Group doesn’t help.

My only workaround is to scale each object independently… But then I risk scaling with different values, adding an offset, etc.

EDIT: this was noted and a feature request submitted to allow using the option during batch selection here: Activate "Scale Styles" option even when more than 2 Freehand Paths are selected

That can also be caused by colours. If your using pigment.o you can turn it off while working with vectors, the new version works with vectors already but it’s not ready yet. If your not using it you just need to reapply the line thickness.