How to add masking multiple shape with stroke invisible inside are of the mask ?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Trizul96
Posts: 25
Joined: Sat May 16, 2020 7:12 pm

How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Trizul96 »

Hi, I currently trying to combine 2 part of shape into masking area, but I got a problem. The stroke of the upper layer is still on the masking area which I want to get of rid this stroke from masking area. I spending a lot of time watching video and trying to browse online, but still not get the answer yet. Can you help me to solve this problem, here the picture https://drive.google.com/file/d/19HyMw4 ... sp=sharing Image
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Daxel »

I think the feature you are looking for is: Layer settings - Masks - Exclude strokes
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Greenlaw »

I'm not exactly sure what you're trying to do here. Are you trying to merge the two layer drawings like this?

Image

Moho doesn't have interactive boolean effects but you can fake it a few different ways. The above example was done using two copies of the circle, one that's fill only and on top of the box that has both fill and stroke, and the other circle is behind the box with an double wide stroke applied. Here's the project if you want to look...

liveBooleanFake.moho

Another way to fake this is to use no stroke on the items, place them in a group, and enable Outline in the Group Properties. You won't see the effect immediately but it will appear in a render...

Image

The 'gotcha' with this method is that the stroke exists outside of the shapes and not on top of the shape edges like a real stroke. But maybe that doesn't matter? Depends on the design and intent.

By the way, no masking is involved in either of the above hacks.

I'm sure users here can suggest other tricks but hopefully we'll get proper boolean effects in the future. 😸
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Greenlaw »

I looked at your example and description again and I'm still not sure if the above is what you meant.

It would help if you could sketch out exactly what you want the result to look like. Otherwise, just guessing.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Greenlaw »

Oh, wait...in your example, is that the character's shoulder? Sorry, I didn't understand what I was looking at. In that case you probably want to use a Patch layer. See the manual for more info about how to use a Patch layer.

BTW, there's a way to create a Patch layer manually which offers some extra capabilities, like arbitrary Patch shapes and being able to use it with groups. A search in these forums will explain in detail.

Another way I've done this is to simply add a shape on top of the body and shoulder layers, which I can reshape to fit the situation. This shape is typically bound to a small bone that's parented to the upper arm. With this method, masking isn't needed.

I saw a clever trick by another user recently. Will post the link if I remember what that was.

Hope this helps.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How to add masking multiple shape with stroke invisible inside are of the mask ?

Post by Greenlaw »

Oh, one more thing: the arm should be split into two shapes at the elbow. This way the forearm can be properly layered on top of what's going on in the shoulder.

I made a post about 'seamlessly' splitting an arm at the elbow just the other day. It should be easy to find.
Post Reply