Pattern Fill

Post questions on how to use or achieve an effect in Inkscape.
Raspi
Posts: 229
Joined: Fri Oct 21, 2016 12:51 am

Pattern Fill

Postby Raspi » Fri Oct 28, 2016 3:38 am

I have converted a bitmap into a pattern and applied it to a vector object.

First problem: its sometimes hard to find the X needed to move the pattern with the Node Tool.
Any tricks ?

Second problem: how can i apply the exact position an scale of a pattern to another object (with the same pattern) ?
Is there a way to do it with the XML editor ?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Pattern Fill

Postby Lazur » Fri Oct 28, 2016 3:51 am

For the second problem try pasting the style.

Press Ctrl+C while original object is selected, then
press Ctrl+Shift+V after you select the target object.

Raspi
Posts: 229
Joined: Fri Oct 21, 2016 12:51 am

Re: Pattern Fill

Postby Raspi » Fri Oct 28, 2016 3:58 am

Lazur wrote:Press Ctrl+C while original object is selected, then
press Ctrl+Shift+V after you select the target object.

That does not result in the same position and scaling of the pattern for me.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Pattern Fill

Postby Lazur » Fri Oct 28, 2016 5:39 am

Then probably you had added transformations in between -like, original pattern is inside a transformed group/you had resized page to content, and the target object is inside another group with another transformation/on a new layer.
You may try that recent extension suggested here somewhere to remove all transformations.

Raspi
Posts: 229
Joined: Fri Oct 21, 2016 12:51 am

Re: Pattern Fill

Postby Raspi » Fri Oct 28, 2016 6:02 am

I tried it on a new page, no transformations or anything.
Imported the bitmap, convert to pattern, apply to a rectangle, adjust with Node Tool.

Then on a duplicate of the same rectangle, pasted Style as you suggested, pattern is not applied in the same way.

The pattern is a seamless texture, and it seems it is tiled along space and applied that way to the second retangle.
So apparently, pasting the style only works properly if both objects are on the same X-axis.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Pattern Fill

Postby Moini » Fri Oct 28, 2016 6:17 am

> it seems it is tiled along space
The pattern origin (the X) stays the same for both, yes, why you copy-paste the style. It is not moved by the distance between the two objects.

Problem with the pattern origin being hard to find:

It's a known bug that has to do with transformations... Often, I find it in the page's top left corner. Their color / size doesn't exactly make it easier to find the pattern handles... If you want to have a good result when exporting, make sure to move the handles as close to the object as possible. Otherwise, the pattern may be lost on export, or on certain zoom levels.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”