move pattern?

Post questions on how to use or achieve an effect in Inkscape.
ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

move pattern?

Postby ait » Sat Oct 25, 2014 3:33 am

Hi,
Two questions"
1. So I've converted a large image to a pattern and then I create a circle and fill it with that pattern (Ie - the picture) . However, the wrong part of the picture is being filled. I want a different section.
How do I move that pattern part to get a different section of the original picture?

[See image - at top is the source picture, converted to pattern and at the bottom is the shape filled with that "pattern." However you'll see the tarted part I want [the red train] is not in the picture.]

SEE Picture at the bottom...

I guess the bigger question here is how do I control where the pattern (from the source picture) goes in the new shape??

2. Sometimes my shape is filled with multiple patterns...see second picture. How do I stop that from happening?
See TOP Picture


thanks
thanks
a

PS:
I did go here and this confused me...so I'm looking for someone to more clearly explain
http://tavmjong.free.fr/INKSCAPE/MANUAL ... -Adjusting
Attachments
pattern2.png
pattern2.png (243.48 KiB) Viewed 5500 times
patternhelp.png
patternhelp.png (181.72 KiB) Viewed 5501 times
Last edited by ait on Sat Oct 25, 2014 4:01 am, edited 1 time in total.

ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

Re: move pattern?

Postby ait » Sat Oct 25, 2014 4:05 am

and here's another addition...
sometimes I can see the handles to move the pattern...some times I can't...
so...I'm missing something...
a

ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

Re: move pattern?

Postby ait » Sat Oct 25, 2014 5:05 am

i think I figured it out...but now I'm not sure how to delete this post...
a

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

Re: move pattern?

Postby Lazur » Sat Oct 25, 2014 5:33 am

No worries.

Also, for that purpose it may be a cleaner solution to use clipping.
If you want to move the raster part in the fill, then group the image first, and set a clipping on the group.
That way, you can move the raster image around inside the group later on, to adjust the position.

ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

Re: move pattern?

Postby ait » Sat Oct 25, 2014 6:21 am

yes...I thought about clipping but then I decided not to because there's the chance I'd change my mind and want to get something else in the picture...

also, with clipping isn't it harder to then put a stroke on the object? or no?

thanks
a

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

Re: move pattern?

Postby Lazur » Sat Oct 25, 2014 7:01 am

There are some rendering issue with pattern fills, while the clipping has a much wider support as far as I know.

You can use the clipping path's duplicant to add the stoke above.

And even vice versa: can draw the path you want to fill with the image,
clone it (Alt+D), and use the clone for clipping.
This way you can edit the path on top with a stroke, the one below will respond.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: move pattern?

Postby Xav » Sat Oct 25, 2014 6:58 pm

Lazur's advice is good - particularly about cloning the stroked line and using the clone as the clipping path.

One addition to his suggestions though: group the image, then clip the group rather than clipping the image directly. The advantage is that, when you want to move the image, you can double click on it (to enter the group), then just drag the image around within the clipped area. This works because the clip is applied to the group, which isn't moving, and you're just moving the objects within the stationary group.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

Re: move pattern?

Postby ait » Tue Oct 28, 2014 3:33 am

interesting...I never thought about clipping a group.
but my main reason for not clipping (but doing a pattern fill from a picture) is that I might need to change what I'm focusing on in the image.
...If I'm understanding both of you correctly..
thanks
a

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

Re: move pattern?

Postby Lazur » Tue Oct 28, 2014 4:43 am

Attached a working example:
hlp 154.svg
(8.41 KiB) Downloaded 297 times


Move the nodes of the stroked path on top with the node tool;
select the image clipped with the node tool, change back to object select tool and you can move it around inside.



Edit: this seems to be a common problem, adding a raster image to an object's fill.

Thus, adding tags to help finding it.
clone, pattern, clip, clipping, raster, image, bitmap, fill,

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: move pattern?

Postby Xav » Wed Oct 29, 2014 2:18 am

ait wrote:interesting...I never thought about clipping a group.
but my main reason for not clipping (but doing a pattern fill from a picture) is that I might need to change what I'm focusing on in the image.
...If I'm understanding both of you correctly..
thanks
a


Yes, that's exactly what clipping a group gets you. Suppose you want to focus on something in the top left, first group the image then create a clipping path over the appropriate area and Set Clip. If you later decide you want to focus on something in the bottom right instead, just double click to enter the group then click and drag on the image to move it. The clip (which is at the group level) remains stationary, but the image moves within the "window" it provides. Drag the image up and to the left until the relevant part of the bottom right is visible, then exit the group.

Give it a try. As is often the case, it sounds more complex than it is.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

ait
Posts: 138
Joined: Wed Apr 30, 2014 2:13 am

Re: move pattern?

Postby ait » Sat Nov 08, 2014 12:32 am

Hi...I'll have to try that however I'm not sure I know how to "Create a clipping path."
[Admittedly, my understanding of inkscape has many holes in it...]
I'll let you know..thanks
a


Return to “Help with using Inkscape”