Jump to: Board index » General » Fusion

Pro Tip Needed: Solid That Automatically Moves With Text

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

CatalynJer

  • Posts: 10
  • Joined: Tue Dec 13, 2022 9:12 am
  • Real Name: Catalyn Jeron

Pro Tip Needed: Solid That Automatically Moves With Text

PostSun Jun 04, 2023 10:32 pm

Hello dear Fusion professionals,

I have a colored solid that ''reveals'' a text box. I need the solid to expand to the right automatically so that if a long sentence is typed to the text box, the colored solid expands to the right along with the text. This way, before the reveal animation, the solid would cover ALL of my text, no matter the length.

1.jpg
1.jpg (42.24 KiB) Viewed 1182 times

2.jpg
2.jpg (80.51 KiB) Viewed 1182 times

3.jpg
3.jpg (78.38 KiB) Viewed 1182 times


Does anyone know a script for this? Thank you for your time.

PS: This is a continuation to my previous help request about ''Two Automatically Resizing Text Boxes'': https://forum.blackmagicdesign.com/viewtopic.php?f=22&t=172669

I owe a huge thanks to Eric E. for helping me with that that previous problem.
Offline

Sander de Regt

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

Re: Pro Tip Needed: Solid That Automatically Moves With Text

PostMon Jun 05, 2023 6:02 am

In the shader setting of the Text tool, there is a way to shade the text itself solid. This way it will always adapt to the text. You'll need to link two text tools together to make this work probably, depending on what kind of reveal you're looking for.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

CatalynJer

  • Posts: 10
  • Joined: Tue Dec 13, 2022 9:12 am
  • Real Name: Catalyn Jeron

Re: Pro Tip Needed: Solid That Automatically Moves With Text

PostSun Jun 11, 2023 11:42 pm

Sander de Regt wrote:In the shader setting of the Text tool, there is a way to shade the text itself solid. This way it will always adapt to the text. You'll need to link two text tools together to make this work probably, depending on what kind of reveal you're looking for.


Could you please share a screenshot? I'm completely lost on this issue.
Offline

Sander de Regt

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

Re: Pro Tip Needed: Solid That Automatically Moves With Text

PostMon Jun 12, 2023 8:28 am

Just copy/paste the following in your comp and see if it does what you need it to do

Code: Select all
{
   Tools = ordered() {
      Text1 = TextPlus {
         CtrlWZoom = false,
         Inputs = {
            GlobalOut = Input { Value = 50, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            LayoutRotation = Input { Value = 1, },
            TransformRotation = Input { Value = 1, },
            SelectElement = Input { Value = 1, },
            Select = Input { Value = 1, },
            Enabled2 = Input { Value = 1, },
            Softness1 = Input { Value = 1, },
            StyledText = Input { Value = "ANY LENGTH WILL WORK", },
            Font = Input { Value = "Open Sans", },
            Style = Input { Value = "Bold", },
            VerticalJustificationNew = Input { Value = 3, },
            HorizontalJustificationNew = Input { Value = 3, },
            ElementShape2 = Input { Value = 2, },
            Level2 = Input { Value = 1, },
            Softness2 = Input { Value = 1, },
            Position2 = Input { Value = 1, },
            PriorityBack2 = Input { Value = 10, },
            Pivot2 = Input { Value = { 0, -0.007 }, },
            Size2 = Input { Value = 1, },
            SizeY2 = Input {
               SourceOp = "Text1SizeY2",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 330, 16.5 } },
      },
      Text1SizeY2 = BezierSpline {
         SplineColor = { Red = 185, Green = 253, Blue = 250 },
         CtrlWZoom = false,
         NameSet = true,
         KeyFrames = {
            [0] = { 1, RH = { 16.6666666666667, 0.666666666666667 }, Flags = { Linear = true } },
            [50] = { 0, LH = { 33.3333333333333, 0.333333333333333 }, Flags = { Linear = true } }
         }
      }
   }
}
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

CatalynJer

  • Posts: 10
  • Joined: Tue Dec 13, 2022 9:12 am
  • Real Name: Catalyn Jeron

Re: Pro Tip Needed: Solid That Automatically Moves With Text

PostMon Jun 19, 2023 2:44 pm

Sander de Regt wrote:Just copy/paste the following in your comp and see if it does what you need it to do

Code: Select all
{
   Tools = ordered() {
      Text1 = TextPlus {
         CtrlWZoom = false,
         Inputs = {
            GlobalOut = Input { Value = 50, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            LayoutRotation = Input { Value = 1, },
            TransformRotation = Input { Value = 1, },
            SelectElement = Input { Value = 1, },
            Select = Input { Value = 1, },
            Enabled2 = Input { Value = 1, },
            Softness1 = Input { Value = 1, },
            StyledText = Input { Value = "ANY LENGTH WILL WORK", },
            Font = Input { Value = "Open Sans", },
            Style = Input { Value = "Bold", },
            VerticalJustificationNew = Input { Value = 3, },
            HorizontalJustificationNew = Input { Value = 3, },
            ElementShape2 = Input { Value = 2, },
            Level2 = Input { Value = 1, },
            Softness2 = Input { Value = 1, },
            Position2 = Input { Value = 1, },
            PriorityBack2 = Input { Value = 10, },
            Pivot2 = Input { Value = { 0, -0.007 }, },
            Size2 = Input { Value = 1, },
            SizeY2 = Input {
               SourceOp = "Text1SizeY2",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 330, 16.5 } },
      },
      Text1SizeY2 = BezierSpline {
         SplineColor = { Red = 185, Green = 253, Blue = 250 },
         CtrlWZoom = false,
         NameSet = true,
         KeyFrames = {
            [0] = { 1, RH = { 16.6666666666667, 0.666666666666667 }, Flags = { Linear = true } },
            [50] = { 0, LH = { 33.3333333333333, 0.333333333333333 }, Flags = { Linear = true } }
         }
      }
   }
}


Thank you so much Sander! It works great. I'll just have to go study more about Fusion to keep the forums clean from my questions :)

Return to Fusion

Who is online

Users browsing this forum: No registered users and 7 guests