Jump to: Board index » General » Fusion

HELP - Line animation

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

seestroem

  • Posts: 2
  • Joined: Thu Oct 10, 2019 10:00 am
  • Real Name: Jonathan Sjöström

HELP - Line animation

PostThu Oct 10, 2019 10:20 am

Hi everyone!

I'm brand new to DaVinci Resolve and animation overall, only been doing it a bit in photoshop before. I'm mainly a photographer and still image content creator that now needs to do a bit of animation.

I've been spending the last 2 days watching tutorials and trying to create what I need but not much success.

Next week I'm building a led-screen where I want a small line to "travel" on the outside of the black blocks. The line should always be visible but sort of pulsating and traveling around and around and around. Look at this video in the background on the lines:
(time 9:40 if it bugs out)

Could someone please help me understand how I create this animation and look?

Skärmavbild 2019-10-10 kl. 12.05.41.png
Skärmavbild 2019-10-10 kl. 12.05.41.png (29.63 KiB) Viewed 216 times


Thanks!
Offline

xunile

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

Re: HELP - Line animation

PostThu Oct 10, 2019 3:35 pm

You can try using a Background node and Paint node to create the effect.

I'm going to post some code down below. Just highlight and copy the code, then in the Node Editor area of Fusion paste the code, it should create several nodes. This should give you some help in what you are trying to accomplish. The repeating effect is created by using the Spline Editor.

Code: Select all
{
   Tools = ordered() {
      Paint1 = Paint {
         Inputs = {
            Input = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Paint = Input {
               SourceOp = "PolylineStroke2",
               Source = "Out",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 194.667, -22.3333 } },
      },
      PolylineStroke2 = PolylineStroke {
         Points = {
         },
         IsThreaded = false,
         Brushes = { "SoftBrush" },
         ApplyModes = { "PaintApplyColor" },
         CtrlWZoom = false,
         Inputs = {
            Paint = Input {
               SourceOp = "PolylineStroke1",
               Source = "Out",
            },
            BrushControls = Input { Value = 1, },
            ["SoftBrush.Softness"] = Input { Value = 0.237, },
            ["PaintApplyColor.Red"] = Input { Value = 0.866, },
            ["PaintApplyColor.Green"] = Input { Value = 0.234686, },
            ["PaintApplyColor.Blue"] = Input { Value = 0.234686, },
            StrokeControls = Input { Value = 1, },
            WriteOnStart = Input {
               SourceOp = "PolylineStroke1Start1",
               Source = "Value",
            },
            WriteOnEnd = Input {
               SourceOp = "PolylineStroke1End1",
               Source = "Value",
            },
            Polyline = Input {
               Value = Polyline {
                  Points = {
                     { Linear = true, X = 0.02504638209939, Y = -0.216171622276306, RX = 0.053803339547575, RY = -0.00220021831713886 },
                     { Linear = true, X = 0.186456397175789, Y = -0.222772270441055, LX = -0.053803339547575, LY = 0.00220021831713886, RX = 0.000618430378633147, RY = -0.0660066029222885 },
                     { Linear = true, X = 0.18831168115139, Y = -0.420792073011398, LX = -0.000618430378633147, LY = 0.0660066029222885, RX = 0.0599876338951221, RY = 0.00110011201093692 },
                     { Linear = true, X = 0.368274582836756, Y = -0.417491736978588, LX = -0.0599876338951221, LY = -0.00110011201093692 }
                  }
               },
            },
         },
      },
      PolylineStroke1 = PolylineStroke {
         Points = {
         },
         IsThreaded = false,
         Brushes = { "SoftBrush" },
         ApplyModes = { "PaintApplyColor" },
         CtrlWZoom = false,
         NameSet = true,
         Inputs = {
            BrushControls = Input { Value = 1, },
            ["SoftBrush.Softness"] = Input { Value = 0.237, },
            ["PaintApplyColor.Red"] = Input { Value = 0.866, },
            ["PaintApplyColor.Green"] = Input { Value = 0.234686, },
            ["PaintApplyColor.Blue"] = Input { Value = 0.234686, },
            StrokeControls = Input { Value = 1, },
            WriteOnStart = Input {
               SourceOp = "PolylineStroke1Start",
               Source = "Value",
            },
            WriteOnEnd = Input {
               SourceOp = "PolylineStroke1End",
               Source = "Value",
            },
            Polyline = Input {
               Value = Polyline {
                  Points = {
                     { Linear = true, X = 0.0194805189967155, Y = 0.222772270441055, RX = 0.0556586272484665, RY = -0.00330032777078083 },
                     { Linear = true, X = 0.186456397175789, Y = 0.21287128329277, LX = -0.0556586272484665, LY = 0.00330032777078083, RX = 0.000618430378633147, RY = -0.0803080295244328 },
                     { Linear = true, X = 0.18831168115139, Y = -0.0280528049916029, LX = -0.000618430378633147, LY = 0.0803080295244328, RX = 0.0705009263812869, RY = -0.00220021990110444 },
                     { Linear = true, X = 0.399814460295251, Y = -0.0346534646949162, LX = -0.0705009263812869, LY = 0.00220021990110444 }
                  }
               },
            },
         },
      },
      PolylineStroke1Start = BezierSpline {
         SplineColor = { Red = 232, Green = 6, Blue = 244 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 10.3333333333333, 0 }, Flags = { Loop = true } },
            [31] = { 0.694, LH = { 20.6666666666667, 0.694 }, Flags = { Loop = true } }
         }
      },
      PolylineStroke1End = BezierSpline {
         SplineColor = { Red = 72, Green = 233, Blue = 54 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0.306, RH = { 10.3333333333333, 0.306 }, Flags = { Loop = true } },
            [31] = { 1, LH = { 20.6666666666667, 1 }, Flags = { Loop = true } }
         }
      },
      PolylineStroke1Start1 = BezierSpline {
         SplineColor = { Red = 232, Green = 6, Blue = 244 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 10.3333333333333, 0 }, Flags = { Loop = true } },
            [31] = { 0.694, LH = { 20.6666666666667, 0.694 }, Flags = { Loop = true } }
         }
      },
      PolylineStroke1End1 = BezierSpline {
         SplineColor = { Red = 72, Green = 233, Blue = 54 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0.306, RH = { 10.3333333333333, 0.306 }, Flags = { Loop = true } },
            [31] = { 1, LH = { 20.6666666666667, 1 }, Flags = { Loop = true } }
         }
      },
      Background1 = Background {
         Inputs = {
            GlobalOut = Input { Value = 948, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            UseFrameFormatSettings = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 83.3333, -22.3333 } },
      },
      SoftGlow1 = SoftGlow {
         CtrlWZoom = false,
         Inputs = {
            Filter = Input { Value = FuID { "Fast Gaussian" }, },
            Gain = Input { Value = 2.598, },
            Input = Input {
               SourceOp = "Paint1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 330, -19.303 } },
      }
   }
}
Attachments
2019-10-10.png
2019-10-10.png (229.47 KiB) Viewed 201 times
2019-10-10 (1).png
2019-10-10 (1).png (238.96 KiB) Viewed 201 times
Win 10 Home
Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB
Resolve 16.1 Final
Offline

seestroem

  • Posts: 2
  • Joined: Thu Oct 10, 2019 10:00 am
  • Real Name: Jonathan Sjöström

Re: HELP - Line animation

PostMon Oct 14, 2019 1:36 pm

Thanks for the help! Figured it out and it looks good thanks to you! :)
Offline

xunile

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

Re: HELP - Line animation

PostMon Oct 14, 2019 4:22 pm

seestroem wrote:Thanks for the help! Figured it out and it looks good thanks to you! :)


Great, glad I could help.
Win 10 Home
Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB
Resolve 16.1 Final

Return to Fusion

Who is online

Users browsing this forum: Google Feedfetcher and 5 guests