Advanced Masks

Advanced Masks 1.1.0

grimmit

New Member
Hi, First off Thank you! All your plugin work is greatly appreciated.

I suspect that I'm on the right path, but I wanted to make sure that I'm not over complicating this and there is not a simplier solution that I'm missing.

I am making an asset where I have this series of poles (image in OBS) Screenshot 1 and I want each piece to "telescope" from the previous in the style of an old school car radio antenna.

I was going to do this with a rectangle mask(s) in the plugin and use the Move tool to animate them, but It doesn't appear that I can control the anchor point of the mask, and by default it seems to grow from the center. I

So my next thought was to make these "masks" out of color sources and use the Move tool to control the "masks" growing in from the correct anchor points and with the correct timing to cover/show the segments of the poles.

If I understand correctly I should be able to use my "masks" scene of growing rectangles as a Source Mask in the plugin. Do I have this strategized correctly?

Thanks again, and I apreciate your time.

PS: If this is correct.... do I put the "Move Controlled Masks" in a scene by themselves without the graphic underneath and then put the graphic in the main scene to have the Plugin source mask it in?
 

Attachments

  • 1.png
    1.png
    232.5 KB · Views: 27
  • 2.png
    2.png
    164 KB · Views: 26
Last edited:
Hi, First off Thank you! All your plugin work is greatly appreciated.

I suspect that I'm on the right path, but I wanted to make sure that I'm not over complicating this and there is not a simplier solution that I'm missing.

I am making an asset where I have this series of poles (image in OBS) Screenshot 1 and I want each piece to "telescope" from the previous in the style of an old school car radio antenna.

I was going to do this with a rectangle mask(s) in the plugin and use the Move tool to animate them, but It doesn't appear that I can control the anchor point of the mask, and by default it seems to grow from the center. I

So my next thought was to make these "masks" out of color sources and use the Move tool to control the "masks" growing in from the correct anchor points and with the correct timing to cover/show the segments of the poles.

If I understand correctly I should be able to use my "masks" scene of growing rectangles as a Source Mask in the plugin. Do I have this strategized correctly?

Thanks again, and I apreciate your time.

PS: If this is correct.... do I put the "Move Controlled Masks" in a scene by themselves without the graphic underneath and then put the graphic in the main scene to have the Plugin source mask it in?
Hi Grimmit-

You're very welcome! I'm glad you enjoy the plugin.

I think that the approach of using a scene of changing color sources is a great approach that should give you more control. I'd love to see what it all looks like when you're done.
 

SoCalFoxx

New Member
I will admit I am a newbie to OBS and trying to install this plugin keeps giving me macOS will not allow. I even held control to override and it attempts but then again will not allow.
Screenshot 2024-06-28 at 4.27.03 PM.png
 
Last edited:
I will admit I am a newbie to OBS and trying to install this plugin keeps giving me macOS will not allow. I even held control to override and it attempts but then again will not allow.
View attachment 104989
Hi SoCalFoxx,

The first thing I’d make sure is that you’re grabbing the correct platform for your Mac. Are you trying to install the “universal” version of the plugin? (That version will work on both the newest and older Macs). If not, please give that a try. If that doesn’t work, let me know and we’ll try some other troubleshooting steps.
 

grimmit

New Member
Hi, First off Thank you! All your plugin work is greatly appreciated.

I suspect that I'm on the right path, but I wanted to make sure that I'm not over complicating this and there is not a simplier solution that I'm missing.

I am making an asset where I have this series of poles (image in OBS) Screenshot 1 and I want each piece to "telescope" from the previous in the style of an old school car radio antenna.

I was going to do this with a rectangle mask(s) in the plugin and use the Move tool to animate them, but It doesn't appear that I can control the anchor point of the mask, and by default it seems to grow from the center. I

So my next thought was to make these "masks" out of color sources and use the Move tool to control the "masks" growing in from the correct anchor points and with the correct timing to cover/show the segments of the poles.

If I understand correctly I should be able to use my "masks" scene of growing rectangles as a Source Mask in the plugin. Do I have this strategized correctly?

Thanks again, and I apreciate your time.

PS: If this is correct.... do I put the "Move Controlled Masks" in a scene by themselves without the graphic underneath and then put the graphic in the main scene to have the Plugin source mask it in?
Hello again, I am posting a 40-second video of the issue I'm experiencing. I'm sure it's some sort of operator error on my part, but if you could advise what I might be missing here? Thanks again!

 
Hello again, I am posting a 40-second video of the issue I'm experiencing. I'm sure it's some sort of operator error on my part, but if you could advise what I might be missing here? Thanks again!

Hi Grimmit,

It is a little hard for me to see exactly what is going on, but I'm guessing it is because the source you are creating your mask in is the size of your entire canvas, whereas the metal arm image is smaller. One of the tricky parts of using source mask is making sure the aspect ratios/sizing is correct. A quick check would be to apply the mask to the entire scene that has the metal rod image in it, and see if that works better.
 

grimmit

New Member
Hi Grimmit,

It is a little hard for me to see exactly what is going on, but I'm guessing it is because the source you are creating your mask in is the size of your entire canvas, whereas the metal arm image is smaller. One of the tricky parts of using source mask is making sure the aspect ratios/sizing is correct. A quick check would be to apply the mask to the entire scene that has the metal rod image in it, and see if that works better.
Great! That makes perfect sense. I knew I was missing something simple! This is Chance, by the way, it was fun hanging on your stream last week when you were making the promo video on Retro FX. You da man!
 

Divade011

New Member
Hey finite, are you (or is anyone) able to simultaneous move a non-advanced mask filter? I was trying to use move source as a mask was activating but I don't have the option. I can do it the other way around if Move source takes the lead and sets a simultaneous move as Adv. Mask. Just thought I'd share.
 

ottawafro

Member
Hey finite, are you (or is anyone) able to simultaneous move a non-advanced mask filter? I was trying to use move source as a mask was activating but I don't have the option. I can do it the other way around if Move source takes the lead and sets a simultaneous move as Adv. Mask. Just thought I'd share.
I use a move value option to modify / animate my masks .

1723477895143.png
 
Hey finite, are you (or is anyone) able to simultaneous move a non-advanced mask filter? I was trying to use move source as a mask was activating but I don't have the option. I can do it the other way around if Move source takes the lead and sets a simultaneous move as Adv. Mask. Just thought I'd share.
Typically this would be done via "Move Action" pointing to the other source filter you want to trigger, and the simultaneous move option.
 

iberratio

New Member
Hi there,

thanks for the plugin btw, it's just a lifesaver!

I'm currently wondering how to achieve the effect that is attached as a screenshot. Basically a circular mask within another circular mask. However I want to invert the second, smaller circle to only get the outer borders of the bigger one. Is there a way to achieve that? :D Thanks in advance!
 

Attachments

  • dff.png
    dff.png
    39.2 KB · Views: 14
Hi there,

thanks for the plugin btw, it's just a lifesaver!

I'm currently wondering how to achieve the effect that is attached as a screenshot. Basically a circular mask within another circular mask. However I want to invert the second, smaller circle to only get the outer borders of the bigger one. Is there a way to achieve that? :D Thanks in advance!
Hi Iberratio-

I'm glad you're enjoying the plugin! Currently there isn't an easy way to do what you want to do, but it can be done with an extra color source, and 2 more advanced masks applications:
1. Add the outer diameter circle mask to the source you want to ultimately have masked as a ring.
2. Create a new color source. Add a circle mask to it that is the position/diameter of the inner ring. You can now turn this source visibility off with the eyeball next to it in the scene.
3. On the first source, add a second advanced mask, but make this one a "source" mask. Select your inner-circle color source as the source, and check the "invert mask" option.

I am planning on adding an "invert mask" option to the shape mask in the next version of Advanced Masks, which will make this much easier to do.
 

lcalder

Member
One possible enhancement to this plugin would be to create custom shapes where n number of custom points with their x/y coordinates, opacity, feather width, corner radius, could be defined (I'm dreaming here - I know some of these might be challenging/impossible given the limitations of the obs plugin framework). There is an existing polymask plugin which allows 8 'x' and 8 'y' coordinates to be defined which works reasonably well, but it doesn't have corner radius, opacity, feather etc... It's nice to have regular shapes which can be easily defined, but irregular polygons would save the user from having to create complex masks using an external program, or being limited to 8 coordinates with polymask....

The way that polymask addresses the UI limitations of OBS is to use sliders for each X and Y coordinate. It's a bit cumbersome to figure out at first, but once you get the hang of it, it works reliably... (I wish point-and-click were possible in the interface..)
Here's the link https://obsproject.com/forum/threads/polymask-filter-script.160738/
 
One possible enhancement to this plugin would be to create custom shapes where n number of custom points with their x/y coordinates, opacity, feather width, corner radius, could be defined (I'm dreaming here - I know some of these might be challenging/impossible given the limitations of the obs plugin framework). There is an existing polymask plugin which allows 8 'x' and 8 'y' coordinates to be defined which works reasonably well, but it doesn't have corner radius, opacity, feather etc... It's nice to have regular shapes which can be easily defined, but irregular polygons would save the user from having to create complex masks using an external program, or being limited to 8 coordinates with polymask....

The way that polymask addresses the UI limitations of OBS is to use sliders for each X and Y coordinate. It's a bit cumbersome to figure out at first, but once you get the hang of it, it works reliably... (I wish point-and-click were possible in the interface..)
Here's the link https://obsproject.com/forum/threads/polymask-filter-script.160738/
Great idea, and something I've had rattling around in the back of my mind since I started the plugin. And the UI limitations are the one thing that give me pause. Through my work on QAU, I've been learning how to integrate new UI elements, and have some ideas. I'll be revisiting Advanced Masks in the coming month or two to give it a bunch of new features, so stay tuned!
 
Can't open the pkg on Sequoia. It's refusing to open it as it thinks it may be unsafe. None of the usual works.
Apologies for having issues. I wonder if Apple changed their security process. I dont yet have Sequoia installed on my MBP, but will do so later today, and see if I can get this sorted out. I do have the ability to sign packages on MacOS now, and will work on that too (but it might take a few days to get all the pieces in place).
 

rachalmers

Member
Apologies for having issues. I wonder if Apple changed their security process. I dont yet have Sequoia installed on my MBP, but will do so later today, and see if I can get this sorted out. I do have the ability to sign packages on MacOS now, and will work on that too (but it might take a few days to get all the pieces in place).
No worries. Thanks. I'm running an M2 Mac mini here, Sequoia, 15.0.1. Signed packages would be nice, and I'm sure happy to wait. Thanks.
 

TMBGeeks

New Member
Not trying to complain, I appreciate your plugins and just want to understand them and make them better.

I find the Mask Geometry extremely confusing and after hours of experiments I think the culprit is half pixels in conjunction with Corner Radius. Center X and Center Y can't have half pixels manually inputted but if your source is an odd number then it defaults to a half pixel amount. The problem is my Width is 1430 and my default Center X is 715 but it needs to be 714 for the left to look good or 716 for the right to look good. By "look good" I mean the feathered edge pixel (seen in the attached images) is no longer being cut off. My workaround has been to change my Width to 1428 and leave my Center X at 715. The same goes for the Height and Center Y.

That adjustment to size should either be automatic or half pixel amounts allowed or adjustment in the code to prevent the need for edge feathering when Corner Radius is used (my preferred option since the others partially lose 1px on each side).

Separately, having Recenter Mask account for cropping would be great. My original source is 900px but the top is cropped by 100px down to 800px and Recenter Mask sets Center Y to 450px instead of 500px even though the default Height and Width in Advanced Masks does recognize the new size after cropping. Adjusting is somewhat easy for that example (you have to divide the crop amount by half and add it to the default) but when all four sides are cropped by arbitrary numbers, it's a headache.
 

Attachments

  • DELETE1.png
    DELETE1.png
    17.5 KB · Views: 10
  • DELETE2.png
    DELETE2.png
    21.6 KB · Views: 10
Not trying to complain, I appreciate your plugins and just want to understand them and make them better.

No worries at all. I absolutely appreciate the feedback, and want to make my plugins better, and welcome constructive feedback/requests.

I find the Mask Geometry extremely confusing and after hours of experiments I think the culprit is half pixels in conjunction with Corner Radius. Center X and Center Y can't have half pixels manually inputted but if your source is an odd number then it defaults to a half pixel amount. The problem is my Width is 1430 and my default Center X is 715 but it needs to be 714 for the left to look good or 716 for the right to look good. By "look good" I mean the feathered edge pixel (seen in the attached images) is no longer being cut off. My workaround has been to change my Width to 1428 and leave my Center X at 715. The same goes for the Height and Center Y.

That adjustment to size should either be automatic or half pixel amounts allowed or adjustment in the code to prevent the need for edge feathering when Corner Radius is used (my preferred option since the others partially lose 1px on each side).

I'll be working on the next version of Advanced Masks in a few weeks (currently working on an update for Stroke/Glow/Shadow), and will definitely look into ways to fix this. Handling half pixels can definitely be tricky, but you've given me some great info that I can hopefully reproduce to fix the issue.

Separately, having Recenter Mask account for cropping would be great. My original source is 900px but the top is cropped by 100px down to 800px and Recenter Mask sets Center Y to 450px instead of 500px even though the default Height and Width in Advanced Masks does recognize the new size after cropping. Adjusting is somewhat easy for that example (you have to divide the crop amount by half and add it to the default) but when all four sides are cropped by arbitrary numbers, it's a headache.

I assume you are cropping within a scene (alt-dragging a size to crop in, or using the transformation menu). If this is the case, unfortunately what you want to do is not possible, as a filter on a source can not access the transformation information of the source in a scene. This is because OBS applies a filter to a source *before* any transformation is applied, and that transformation can be different in different scenes. One way to work around this is to use a crop/pad filter in the source's filter chain, before the mask is applied, rather than using the scene's transformation. If you do it that way, Advanced mask should properly recenter, though doing it that way applies to that source in every scene, and is less intuitive to set up than using the transform within the scene.
 

Mattias89

New Member
Hello!

Thanks for the Lovely plugin!!

Would be even more STUNNING if would be possible to MASK as a Polygon in old-fashioned photoshop.. ...or GIMP!!!
..setting points with a magnetic lazo and cutting out (from greenscreen in my case) some lights, cameras or other stuffs that comes in the middle!


Unfortunately i record standing not sitting, so behind me (on sides) could be some imperfections to cut out..

Than a POLYGON mask (free number of anchor points to draw the weird shape) could be even VERY HELPFUL to grab ANY image or stuff and cut out just a part of it.. (or apply effects to hide..)

like a "appearing puzzle" .. ruffles.. or chop away a piece of jpg..or video.. would be very handy to have a mask editor... not needed to step out of obs for any stuff..


Would be very nice to implement this mask with some blur-pixel-waterdrops-whateverelse effect!
 
Top