Jump to: Board index » General » Fusion

Trick to 2 masks on one clip

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

MarnMxxx

  • Posts: 44
  • Joined: Sat Dec 22, 2018 6:45 am
  • Real Name: Marn Morris

Trick to 2 masks on one clip

PostThu Jun 06, 2019 5:39 pm

Can't get 2 masks onto one simple clip. Seems like it should be simple but there is absolutely nothing simple in Fusion.

2 Masks, one clip. What's the hidden secret for this easiest of things in After Effects.
Offline
User avatar

michael vorberg

  • Posts: 923
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 6:06 pm

Can you show what you did so far?

You connect one mask with the other (mask output into mask input) and use both to mask the clip...
Easy as many things in fusion
Offline

MarnMxxx

  • Posts: 44
  • Joined: Sat Dec 22, 2018 6:45 am
  • Real Name: Marn Morris

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 6:54 pm

Here's what you said to do.
Just trying to punch 2 holes into clip to show through to another clip below; seems simple but.
Attachments
MasksIssue.jpg
MasksIssue.jpg (312.98 KiB) Viewed 283 times
Offline

Sander de Regt

  • Posts: 1271
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 8:21 pm

You're almost there.
Personally I'd never mask a loader/mediain, but use a matte control tool after this.
One way to do it the way you're trying to do is by starting with a rectangle mask that covers the whole frame and then use two ellipse masks set to substract to cut the holes and you should be good to go.

*edit* never mind - this is not the best suggestion, see below.
Last edited by Sander de Regt on Thu Jun 06, 2019 8:54 pm, edited 1 time in total.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Hendrik Proosa

  • Posts: 532
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 8:40 pm

Why doesn't op's current setup work though? What is the logic of it not working?
I do stuff.
Offline

Sander de Regt

  • Posts: 1271
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 8:53 pm

You know what? I just found out you don't need the first rectangle. Just use two ellipses like the OP does.
But: the 2nd one needs to be set to subtract, and I think this is not the case in the OPs original flow.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Bryan Ray

  • Posts: 977
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Trick to 2 masks on one clip

PostThu Jun 06, 2019 9:13 pm

Hendrik Proosa wrote:Why doesn't op's current setup work though? What is the logic of it not working?


One of the Ellipses is Inverted, and the second is likely set to Merge. So they're both there, but the second one is simply covered by the first.

Another way to do it would be to leave both Ellipses in their normal positive mode, then add a Bitmap tool between the second Ellipse and the footage and set that to invert instead. Then you'd have two holes in the solid mask.
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

MarnMxxx

  • Posts: 44
  • Joined: Sat Dec 22, 2018 6:45 am
  • Real Name: Marn Morris

Re: Trick to 2 masks on one clip

PostFri Jun 07, 2019 5:11 pm

You connect one mask with the other (mask output into mask input) and use both to mask the clip...
Easy as many things in fusion


Lots of folks saying how easy Fusion actually is.

Sander de Regt actually gave the easy step of just setting the second Ellipse to subtract. That worked and yes, turns out to be easy. The part that's not easy is figuring this out. Look at the other posts trying to come up with some way to do it. My first ellipse is set at invert and so was the 2nd. I turned off invert on the 2nd ellipse and set to subtract which worked great.

I'll say it again. Fusion is anything but easy. Trying to figure out a way to accomplish simple things is proving very difficult.

Thanks everyone for all the post and I'll be back very soon I'm sure looking to solve something very simple.
Offline
User avatar

michael vorberg

  • Posts: 923
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Trick to 2 masks on one clip

PostFri Jun 07, 2019 8:38 pm

your inital post didnt cover the part you want a inverted mask, just two masks together to one loader/mediaIn.

IMO node based compositing needs the artist more to understand what (s)he is doing. if you look node for node you can see your result and decide what to do.

if you looked at your first mask then you see a big white space with a tiny little black hole. how would you do a second hole if it was a sheet of paper? you need to cut it out (=substract) something from it.


another way would be to add both mask together and apply the "Invert mask" on the loader/mediaIn, maybe this is more like you would do it in other software.
Offline

MarnMxxx

  • Posts: 44
  • Joined: Sat Dec 22, 2018 6:45 am
  • Real Name: Marn Morris

Re: Trick to 2 masks on one clip

PostFri Jun 14, 2019 3:54 pm

michael vorberg wrote:another way would be to add both mask together and apply the "Invert mask" on the loader/mediaIn, maybe this is more like you would do it in other software.


Adding both masks together was what I was trying in the first place. Whats the trick to that?

Here's how logically it should have gone:
I have a mediaIn. I wanted two holes punched in.
Add a ellipse mask. It makes a circle with everything around it cut out. The opposite of what I want, so I invert the ellipse mask and looky there it punches my hole just like I want.
I needed a second hole so I added a second ellipse and like the first one which worked, I wanted the transparent part on the inside not the outside so I clicked invert. Which worked for the first but not the 2nd. Maybe it would work if I could have one mask node with multiple masks added to it but that doesn't seem to work. Long story short, what works for one mask doesn't work for the next. That is the definition of non-intuitive.
Offline
User avatar

Bryan Ray

  • Posts: 977
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Trick to 2 masks on one clip

PostFri Jun 14, 2019 6:16 pm

Allow me to repeat what I said above:

Another way to do it would be to leave both Ellipses in their normal positive mode, then add a Bitmap tool between the second Ellipse and the footage and set that to invert instead. Then you'd have two holes in the solid mask.
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

MarnMxxx

  • Posts: 44
  • Joined: Sat Dec 22, 2018 6:45 am
  • Real Name: Marn Morris

Re: Trick to 2 masks on one clip

PostSat Jun 15, 2019 12:31 am

Didn't work for me.
Offline
User avatar

Bryan Ray

  • Posts: 977
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Trick to 2 masks on one clip

PostSat Jun 15, 2019 4:24 am

Perhaps I didn't explain well. Paste this into your Flow:

Code: Select all
{
   Tools = ordered() {
      Ellipse1 = EllipseMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input { Value = { 0.641104294478528, 0.5 }, },
            Width = Input { Value = 0.15, },
            Height = Input { Value = 0.15, },
         },
         ViewInfo = OperatorInfo { Pos = { 385, 82.5 } },
      },
      Ellipse2 = EllipseMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input { Value = { 0.323619631901841, 0.5 }, },
            Width = Input { Value = 0.15, },
            Height = Input { Value = 0.15, },
            EffectMask = Input {
               SourceOp = "Ellipse1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 550, 82.5 } },
      },
      Bitmap1 = BitmapMask {
         Inputs = {
            Invert = Input { Value = 1, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Image = Input {
               SourceOp = "Ellipse2",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 82.5 } },
      },
      Background1 = Background {
         CtrlWZoom = false,
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            TopLeftRed = Input { Value = 0.594, },
            EffectMask = Input {
               SourceOp = "Bitmap1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 880, 82.5 } },
      }
   }
}
Bryan Ray
http://www.bryanray.name
http://www.musevfx.com
Offline

Frank Engel

  • Posts: 114
  • Joined: Thu May 17, 2018 11:09 pm
  • Real Name: Frank Engel

Re: Trick to 2 masks on one clip

PostTue Jun 18, 2019 1:10 pm

MarnMxxx wrote:Adding both masks together was what I was trying in the first place. Whats the trick to that?


Not quite. In Fusion, a mask indicates what to include, not what to exclude.

When you "add" masks together, it adds to what is included. If you had two separate "holes" in the two masks, then each mask included everything that was not the hole. Adding them together would mean including everything that was included by either one, so each of the masks would have covered up the hole from the other one.
Offline

Hendrik Proosa

  • Posts: 532
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Trick to 2 masks on one clip

PostTue Jun 18, 2019 3:32 pm

A simple analogue: you cut a hole into piece of paper. And you cut a hole in different place into another piece of paper. Put one paper over another. Do you see through either of the holes? Nope. Paper here is the mask (value 1.0), hole is where mask value is zero.
I do stuff.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 4 guests