Jump to: Board index » General » Fusion

MatteControl (newbie alert)

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

Marek Vanourek

  • Posts: 13
  • Joined: Sun Nov 11, 2018 5:52 pm
  • Real Name: Marek Vaňouren

MatteControl (newbie alert)

PostSat Jan 05, 2019 7:51 pm

Hi,

trying to do this in Fusion (free version). In the end, text will be animated - transparency and rectangle will be animated as well - position. So, when text overlay rectangle it works as alpha matte, when is not overlaying rectangle it is shown normally.

Which nodes should I use?

Thank you!
Marek
Attachments
fusion.PNG
fusion.PNG (7.24 KiB) Viewed 904 times
Offline

xunile

  • Posts: 3072
  • Joined: Mon Apr 23, 2018 5:21 am
  • Real Name: Eric Eisenmann

Re: MatteControl (newbie alert)

PostSun Jan 06, 2019 2:24 am

You could try this.

Code: Select all
{
   Tools = ordered() {
      Text1 = TextPlus {
         Inputs = {
            ApplyMaskInverted = Input { Value = 1, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Size = Input { Value = 0.2009, },
            Font = Input { Value = "Open Sans", },
            StyledText = Input { Value = "Fusion", },
            Style = Input { Value = "Bold", },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = ""
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 365, 89 } },
      },
      Rectangle1 = RectangleMask {
         CtrlWZoom = false,
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input { Value = { 0.5, 0.396457765667575 }, },
            Height = Input { Value = 0.205722070844687, },
         },
         ViewInfo = OperatorInfo { Pos = { 446, -10 } },
      },
      Merge3 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Merge4",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
            EffectMask = Input {
               SourceOp = "Text1",
               Source = "Output",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 602, 130 } },
      },
      Merge4 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Background2",
               Source = "Output",
            },
            InvertTransform = Input { Value = 1, },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 621, 64 } },
      },
      Background2 = Background {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            TopLeftRed = Input { Value = 0.63921568627451, },
            TopLeftGreen = Input { Value = 0.607843137254902, },
            TopLeftBlue = Input { Value = 0.172549019607843, },
            EffectMask = Input {
               SourceOp = "Rectangle1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 619, -5 } },
      },
      Merge2 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Merge1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Merge3",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
            EffectMask = Input {
               SourceOp = "Rectangle1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 562, 221 } },
      },
      Background1 = Background {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 291, 223 } },
      },
      Merge1 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 429, 222 } },
      }
   }
}
Win 10 Home | Intel i7 - 10700f 64 GB 1 TB GB SSD 2 TB SSD
RTX-3060 12 GB | Resolve Studio 18.6.6| Fusion Studio 18.6.6

Win 10 Home | Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB | Resolve 17.4.6
Offline

Marek Vanourek

  • Posts: 13
  • Joined: Sun Nov 11, 2018 5:52 pm
  • Real Name: Marek Vaňouren

Re: MatteControl (newbie alert)

PostSun Jan 06, 2019 10:47 am

Thank you Eric!

I forgot to mention that it should be transparent. But based on your advice I was able to find solution. Thanks again! In case someone will need this in future, here is screenshot of nodes (sorry for no code, but don't know how to work with lua).
Attachments
fusion_solution.PNG
fusion_solution.PNG (21.04 KiB) Viewed 830 times
Offline

Sander de Regt

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

Re: MatteControl (newbie alert)

PostSun Jan 06, 2019 11:05 am

Just select the nodes in Fusion, ctrl+C and then ctrl+v within this forum's Code tags and you're done.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

xunile

  • Posts: 3072
  • Joined: Mon Apr 23, 2018 5:21 am
  • Real Name: Eric Eisenmann

Re: MatteControl (newbie alert)

PostSun Jan 06, 2019 6:04 pm

Marek Vanourek wrote:Thank you Eric!

I forgot to mention that it should be transparent. But based on your advice I was able to find solution. Thanks again! In case someone will need this in future, here is screenshot of nodes (sorry for no code, but don't know how to work with lua).


You're welcome. Here is your code, it is a nice solution, 2 less nodes than mine.

Code: Select all
{
   Tools = ordered() {
      Merge1 = Merge {
         CtrlWZoom = false,
         Inputs = {
            Background = Input {
               SourceOp = "MatteControl1_1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "MatteControl1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 463.333, 80.0909 } },
      },
      MatteControl1_1 = MatteControl {
         Inputs = {
            ["Garbage.Matte"] = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            ["Garbage.MaskNest"] = Input { Value = 1, },
            Background = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 354, 79.4848 } },
      },
      MatteControl1 = MatteControl {
         Inputs = {
            ["Garbage.Matte"] = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
            ["Garbage.MaskNest"] = Input { Value = 1, },
            Background = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 335.333, 28.5758 } },
      },
      Rectangle1 = RectangleMask {
         Inputs = {
            Filter = Input { Value = FuID { "Fast Gaussian" }, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input { Value = { 0.5, 0.479728105260857 }, },
            Height = Input { Value = 0.274834437086093, },
         },
         ViewInfo = OperatorInfo { Pos = { 148, -0.181824 } },
      },
      Background1 = Background {
         Inputs = {
            GlobalOut = Input { Value = 179, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            UseFrameFormatSettings = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            TopLeftRed = Input { Value = 0.819607843137255, },
            TopLeftGreen = Input { Value = 0.772549019607843, },
            TopLeftBlue = Input { Value = 0.262745098039216, },
            EffectMask = Input {
               SourceOp = "Rectangle1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 147.333, 32.8182 } },
      },
      Text1 = TextPlus {
         Inputs = {
            GlobalOut = Input { Value = 179, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            UseFrameFormatSettings = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            StyledText = Input { Value = "Fusion", },
            Font = Input { Value = "Open Sans", },
            Style = Input { Value = "Bold", },
            Size = Input { Value = 0.1732, },
            VerticalJustificationNew = Input { Value = 3, },
            HorizontalJustificationNew = Input { Value = 3, },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = ""
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 133.333, 92.8182 } },
      }
   }
}
Win 10 Home | Intel i7 - 10700f 64 GB 1 TB GB SSD 2 TB SSD
RTX-3060 12 GB | Resolve Studio 18.6.6| Fusion Studio 18.6.6

Win 10 Home | Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB | Resolve 17.4.6

Return to Fusion

Who is online

Users browsing this forum: No registered users and 8 guests