• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clipping mask not showing?

Enthusiast ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

I want to place a clipping mask on a red box that I am going to animate as moving fluid.

 

The next drawing right below the mask is an "empty container".

 

I want the red box to move up and down the white cube as is it is filling the container. 

 

Check video below.  How can I do this? 

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

 

 

TOPICS
How to

Views

257

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

You are using the right tools - just need to tweak how you are using them. The clipping mask clips the layer it is on by ALL of the following children under the same parent. So I tend to create a new group then put the red cube and the following clipping object in that group. That stops the following layers getting involved in the clipping. I think what you are seeing is it is being clipped by the white box AND the brown square. That is because the brown square is a sibling after the clipping layer.

 

So, create a group, put the red cube in it with clipping on, then put a while cube in there as well after it. (I think you can hide it if you want to but a copy there - even when hidden I think it still clips.) This mistake you are making is only that you assume the clipping command uses the next layer only, instead of all following layers under the same parent.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

So I created a new layer with just the blank cube and the red cube. 

 

The red cube is on top and the blank white cube is on the bottom.  

 

The white cube is made of a group of pen lines of black stroke and no fill. 

 

It seems like the mask is working only on the stroke but the no fill area doesn't show anything.

 

Maybe I need to create some transparent color to give an illustion of an empty container and make the mask work as it moves through the transparent color? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

I think I am gonna have to draw a wihte background in which I can place the line drawings on top, then make the mask right on top of the white background. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

LATEST

Its working.

 

Needed to add a white background for the mask to show.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

Yes, you need a solid filled in shape to do the clipping. I personally would be tempted to create a group, put the red cube in it, duplicate the cube and make it the second child of the new group, and then hide that duplicate layer. I am pretty sure even hidden layers will clip, so you will have a shape the same size. You then move the first cube up and down.

 

- GroupToLimitClipping

- - Red Cube (with clipping enabled)

- - Clone of Red Cube (hidden)

- Black lines of cube

 

There are different ways you can do it, but the clipping mask needs to be solid (filled in) where you want it visible.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines