Skip to main content
Inspiring
August 6, 2020
Question

What is the proper way to create a mask?

  • August 6, 2020
  • 1 reply
  • 382 views

I am trying to create a mask and this is the closest I have been able to make it work.

 

I tried nesting the masking group, but that just made my item disappear completely.   How would you create a proper sub-layer to make the mask work? 

 

What I have now is a complete different setup than a sublayer because that is the way I have made it work in other cases. 

 

The problem I have is that the mask is changing the color of the item and not maching the original color.  Is there a way I can fix it? 

 

Here is a video of the setup I have. 

https://www.youtube.com/watch?v=b9P7fCLzo3s

 

 

 

 

This topic has been closed for replies.

1 reply

alank99101739
Legend
August 6, 2020

It is a bit hard to be sure when the artwork is so complex, but this is what I think is going on.

 

The reason for the color difference is because you have background, fluid (transparent red) and foreground. The red goes darker when you combine the three (two transparent greys and transparent red).

 

I think you are putting a white rectangle as part of the artwork below your device, then sliding the fluid down behind this while shape. That is a way to do it *without* using masking. That should "just work". I *think* when you add the masking (from the menu) you are actually masking out a grey layer, not clipping the artwork, so it is just one layer of gray instead of two, so it looks lighter.

 

Two suggestions to try. First, just don't use the clipping mask feature from the menu. Just have a white rectangle to hide your fluid behind. Does that satisfy your need? If so, done! 😉

 

The alternative is to correct how you are using masking. I recommend creating a sublayer to put the fluid into. The clipping mask arrow icon thingy then goes onto the artwork INSIDE that group, not the container as you are doing it. You also do the Transform on the layer INSIDE the group. You then create a second layer inside the group the same shape as the fluid, but make it a solid color. E.g. copy the fluid layer, then make it solid (not opaque) green or similar. Then hide this layer. I am pretty sure (have not tried sorry) even when hidden it will still clip the fluid layer. The mask must not move. The mask must be after the fluid layer. The fluid and the mask layer must be the only layers in the same group. The clipping flag must only be on the fluid layer inside the group.

 

Here is a discussion on using masking for eyes. There is lots of irrelevant content, but the masking part might be useful. https://extra-ordinary.tv/2018/04/21/debugging-character-animator-eyess/

elindo586Author
Inspiring
August 6, 2020

I will post some videos.

 

But I think the red box is changing to a lighted red because the backround that I am using behind it has a gradient white-gray color. 

 

I think, if ALL of the background in which the red color is showing would be a solid white, then the red boxes would not change color when I applied the mask.

 

The opacity or gradient of the background seems to have an effect on the color of the item you are masking. 

 

Ideally I would like to keep the bacground color as a gradient because I am simulating somewhat of a "glass container" with front and back walls,  some level of gradients and / or opacity can work together as a transparent container, but may not work so great on keep the color of the figure you are trying to mask. 

 

 

 

 

 

 

elindo586Author
Inspiring
August 6, 2020

Here is one video on how the background layer seems to be chaning the color of the item I am masking.

 

Maybe CH can work on separating the color effect that a background layer has on the masking item? 

 

I will post another video to see if the there is a color change of the red box with a solid white background.

 

But in this case I think I am gonna have to go with a white box on the bottom to keep the radient layers. 

 

Would be nice however if CH can keep the same color of the masked item regardless of the color of the background.

 

https://www.youtube.com/watch?v=a2icVXtT6p8