- any mask must be a filled shape.
- mask layer is always below layers to be masked.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15
Moho 14.1 Mac Mini Plus OS 13.5
And it's always better to check with Ctrl+R if the mask is working well in the final render. Sometimes the workspace preview doesn't show the final result when the mask is complex or involves different group/bone layers.
GROUP: Masking: Reveal All
>> IMAGE layer for the character: Mask this layer
>> VECTOR layer: a filled shape to match the outline of the juice box: Subtract from mask
IMAGE layer: the scene with the juice box: NOTE: NOT in the masking group
If your scene is a Movie (?) then you'll need to animate the vector mask to match the shape and position of the juice box.
That double image layer trick will also work using the AS masking (once you get the hang of it of course) if you put it behind the vector layer and set the masking for it.
You save out the mask image with transparency just as described above (either the object cut out, or a hole of the object depending on what you need) and place it behind the vector layer and set the mask image to either add or subtract depending on the parent layer mask settings.
For example:
Based on the example above, set the parent group to Show all, place the "cut out carton" image layer behind the vector, set the image mask to "subtract from mask". This would then hide the vector layer in the same spot as the masked object shape.
Masking in Anime Studio works with transparent png images used as masks. I use this trick with either image layers or "fuzzy brushes" to create soft edge masking for arms at the shoulder. With an image mask you can create soft edge "fall off" that isn't possible with vectors in Anime Studio. By using brushes you can keep the masking simpler because the images can be on a vector layer with other shapes. I use this trick to have a hard edge arm shape that softly fades at the shoulder using a special custom brush.
Also, that background image could be video and the same technique would work. Many video applications have masking features. If you have access to video editing tools that allow you to create masks on video, you could have moving video with masking for an object. Cut a "hole" in your video with a mask and save it with transparency, import two video layers, one for the mask one for the visible content. Put the mask video behind the vector layer and you have a moving mask.
(The only reason I would prefer the image mask technique over "two images" without masking is that you can still tweak the scaling of the mask image to hide any fringes, but it won't effect the actual size of the visible object.)