Page 1 of 1

How do you make a specific kind of sweeping circle animation

PostPosted: Sat Oct 20, 2018 5:45 am
by tristanbay
I saw
tutorial on circle animations but none of his animations had rounded tips.

Is there a way I can easily make animations with rounded ends? Would importing an SVG into Fusion and then making into a paint stroke work?

example picture:
rounded_tips.PNG
rounded_tips.PNG (34.89 KiB) Viewed 1129 times


Thanks!

Re: How do you make a specific kind of sweeping circle anima

PostPosted: Sat Oct 20, 2018 11:55 am
by Frank Feijen
Using a paint node, gives you rounded ends and the option for sweeping:
Code: Select all
{
   Tools = ordered() {
      Paint1 = Paint {
         CtrlWZoom = false,
         Inputs = {
            Input = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Paint = Input {
               SourceOp = "PolylineStroke1",
               Source = "Out",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 660, 247.5 } },
      },
      PolylineStroke1 = PolylineStroke {
         Points = {
         },
         IsThreaded = false,
         Brushes = {
            "SoftBrush",
            "CircleBrush"
         },
         ApplyModes = { "PaintApplyColor" },
         Inputs = {
            BrushControls = Input { Value = 1, },
            BrushShape = Input { Value = FuID { "CircleBrush" }, },
            StrokeControls = Input { Value = 1, },
            WriteOnEnd = Input { Value = 0.667, },
            Polyline = Input {
               Value = Polyline {
                  Closed = true,
                  Points = {
                     { X = -0.248958333333333, Y = 5.44287466287713e-017, LX = 1.69088437774544e-017, LY = 0.245459888813686, RX = -1.69088437774544e-017, RY = -0.245459888813686 },
                     { X = 0.00104166666666667, Y = -0.444444444444444, LX = -0.138071187457698, LY = 4.50902500732119e-017, RX = 0.138071187457698, RY = -4.50902500732119e-017 },
                     { X = 0.251041666666667, Y = -1.08857493257543e-016, LX = -3.38176875549089e-017, LY = -0.245459888813686, RX = 3.38176875549089e-017, RY = 0.245459888813686 },
                     { X = 0.0010416666666668, Y = 0.444444444444444, LX = 0.138071187457698, LY = -7.51504167886864e-017, RX = -0.138071187457698, RY = 7.51504167886864e-017 }
                  }
               },
            },
            ["CircleBrush.Size"] = Input { Value = 0.0089, },
         },
      },
      Background1 = Background {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 550, 247.5 } },
      }
   }
}

Re: How do you make a specific kind of sweeping circle anima

PostPosted: Sat Oct 20, 2018 4:24 pm
by tristanbay
Frank Feijen wrote:Using a paint node, gives you rounded ends and the option for sweeping


How do I paste in the code?

Re: How do you make a specific kind of sweeping circle anima

PostPosted: Mon Oct 22, 2018 7:00 am
by Frank Feijen
select all code, copy. paste into the flow-window

Re: How do you make a specific kind of sweeping circle anima

PostPosted: Tue Oct 23, 2018 4:28 am
by tristanbay
Frank Feijen wrote:select all code, copy. paste into the flow-window


already figure it out, thanks for the help!