Page 1 of 1

Showing Video Within Text

PostPosted: Sun Jan 08, 2017 3:31 am
by Presley Hunter
Hello All,

I have been trying to create a title where you can see video within the text. I used differkey matte, but it did not really work the way I did it. If anyone can shed some light on this it would be great.

Re: Showing Video Within Text

PostPosted: Sun Jan 08, 2017 12:49 pm
by Presley Hunter
Solved it. I should be ashamed it was so easy to do in Fusion. I thought I tried what the solutions was last night, but I guess not. Basically you just connect your Text to your video and there you have it.

Re: Showing Video Within Text

PostPosted: Sun Jan 08, 2017 6:12 pm
by Bryan Ray
Here's another approach: If you want to use a single Loader to have both masked and unmasked versions of your video (it's more efficient than using two Loaders, especially if you're dealing with a video source instead of frames), you could also inject the text mask after the fact with a Matte Control. Loader goes to the background of the Matte Control, text goes into a Bitmap node, then to the garbage matte input (this input will only take a single-channel image, so you have to use the Bitmap to strip the color channels first). Check the "Invert Garbage Matte" checkbox to invert the effect so that your video appears inside the text instead of outside it.

Video-in-text.png
Video-in-text.png (30.06 KiB) Viewed 851 times

Re: Showing Video Within Text

PostPosted: Sun Jan 08, 2017 7:11 pm
by Lucjan Hirszmajer
Basic usage:

Code: Select all
{
   Tools = ordered() {
      MaskText = TextPlus {
         CtrlWZoom = false,
         NameSet = true,
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Size = Input { Value = 0.8, },
            Font = Input { Value = "Impact", },
            StyledText = Input { Value = "TEXT", },
            Style = Input { Value = "Regular", },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = "",
               },
            },
            ShadingGradient1 = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            RenderToDPTFile = Input { Disabled = true, },
            DPTType = Input { Disabled = true, },
            DPTResolution = Input { Disabled = true, },
         },
         ViewInfo = OperatorInfo { Pos = { 385, 214.5, }, },
      },
      Sequence = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "",
               FormatID = "JpegFormat",
               Length = 448,
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 447,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 1,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 1,
               GlobalEnd = 448,
            },
         },
         CtrlWZoom = false,
         NameSet = true,
         Inputs = {
            ["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "R", }, },
            ["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "G", }, },
            ["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "B", }, },
            ["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "A", }, },
            PostMultiplyByAlpha = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            EffectMask = Input {
               SourceOp = "MaskText",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 495, 214.5, }, },
      },
   },
}