Simple feathered MASK for already complicated patch?

nandada's icon

I'm very new to programming and have been working with a pro to create my patches. Just now at the point where I can add things to what he creates. I'm running into a road block trying to add a simple feathered mask to my latest project-and tempted to serenader all the video in AfterEffects with a mask-which I could do with a bit of patience with my pretty good AE skills.

But I'd like to know how to do this is Jitter. Is there a way to create an irregular shape and then feather it? I'd like to create the sense iof seeing through a break in clouds. Eventually I'd like to have the shape change subtly possibly in response to info from the environment but for now just getting a static mask added to my patch would be a big accomplishment.

AfterEffects lets you mask thing using vector drawing and then you can feather the mask as much as you want. I've looked at every new object I found as a suggestion in the Forums but I can't get any of them to do this function. It's like looking for a needle in a haystack. Hope someone can help me out. My patch is already shifting between 6 clips and audio tracks so my hope is that there is a way to add a mask directly to the output window. I attached my patch-minus any abortive masking attempts.

Generativity.maxpat
Max Patch
LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The simplest way could be making a PNG with transparency, and then superimposing it to your scene with a videoplane. Here's an example (check attached image):

Note the @layer, @blend_enable and @depth_enable attributes.
A little more complicated (but not impossible) is to do all the drawing in Max.
Here you can find some hints: https://cycling74.com/forums/how-to-superimpose-video-layers-using-an-interactive-mask-xy-pad-or-tracking/
Also, check this recipe, that deals with feathers: https://cycling74.com/tutorials/recipe-54-zoom/

simpleMask.png
png