Jump to: Board index » General » Fusion

Showing Video Within Text

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

Presley Hunter

  • Posts: 6
  • Joined: Mon Jan 02, 2017 11:35 pm

Showing Video Within Text

PostSun Jan 08, 2017 3:31 am

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.
Offline

Presley Hunter

  • Posts: 6
  • Joined: Mon Jan 02, 2017 11:35 pm

Re: Showing Video Within Text

PostSun Jan 08, 2017 12:49 pm

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.
Offline
User avatar

Bryan Ray

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

Re: Showing Video Within Text

PostSun Jan 08, 2017 6:12 pm

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 849 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Lucjan Hirszmajer

  • Posts: 36
  • Joined: Mon Sep 14, 2015 12:14 pm

Re: Showing Video Within Text

PostSun Jan 08, 2017 7:11 pm

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, }, },
      },
   },
}

Return to Fusion

Who is online

Users browsing this forum: No registered users and 46 guests