Jump to: Board index » General » Fusion

Edge Blur - Macro

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

Ryan Bloomer

  • Posts: 765
  • Joined: Tue Jul 09, 2013 6:58 pm

Edge Blur - Macro

PostMon Feb 01, 2016 4:39 am

I've been using Gregory Chalenko's "BlurredEdgesRestoration" for many scenarios and works amazingly well for about 95% of my edge needs.

I have a flow that I'd like to make into a Macro and share that I use for the other 5% of the time, but when I create the macro, It won't display anything when viewing through it. I've been using this a lot lately, and just keep copying and pasting it into my flow, but thought I'd take another shot at getting it to work and still nothing. Wondering if someone can take a look at it.

Also, Is there a community central location for sharing tools, fuses, macros, processes? I know it's been mentioned on a few other posts. But having a central location for free resources, paid tools, general workflow and processes would be really helpful, especially as more people start trying Fusion.

Anyway, here is the flow I've been copying and pasting lately, as well as the Macro I tried to create that isn't displaying. Any thoughts?

Code: Select all
{
   Tools = ordered() {
      ColorCurves1_2 = ColorCurves {
         PickColor = true,
         Inputs = {
            ProcessRed = Input { Value = 0, },
            ProcessGreen = Input { Value = 0, },
            ProcessBlue = Input { Value = 0, },
            EditRed = Input { Value = 0, },
            EditGreen = Input { Value = 0, },
            EditBlue = Input { Value = 0, },
            Red = Input {
               SourceOp = "ColorCurves1_2Red",
               Source = "Value",
            },
            Green = Input {
               SourceOp = "ColorCurves1_2Green",
               Source = "Value",
            },
            Blue = Input {
               SourceOp = "ColorCurves1_2Blue",
               Source = "Value",
            },
            Alpha = Input {
               SourceOp = "ColorCurves1_2Alpha",
               Source = "Value",
            },
            NumberOfSamplesOnMatchCurve = Input { Value = 64, },
            IgnoreTransparent = Input { Value = 1, },
            Input = Input {
               SourceOp = "ErodeDilate1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 372.235, 164.062, }, },
         Tools = {
            ColorCurves1_2Red = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 255, Green = 52, Blue = 52, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Green = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 0, Green = 255, Blue = 0, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Blue = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 68, Green = 68, Blue = 255, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Alpha = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.0906702504027053, 0.251700306116645, }, Flags = { Linear = true, }, },
                     [0.272010751208116] = { 0.755100918349935, LH = { 0.181340500805411, 0.50340061223329, }, RH = { 0.514673834138744, 0.836733945566623, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.757336917069372, 0.918366972783312, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 204, Green = 204, Blue = 204, },
               CtrlWShown = false,
               NameSet = true,
            },
         },
      },
      MatteControl1_1 = MatteControl {
         Inputs = {
            MatteBlur = Input { Value = 0.1428571, },
            MatteContractExpand = Input { Value = 0.0095238, },
            MatteGamma = Input { Value = 0.7619048, },
            PostMultiplyImage = Input { Value = 1, },
            Background = Input {
               SourceOp = "ColorCurves1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 355, 205, }, },
      },
      ErodeDilate1_2 = ErodeDilate {
         Inputs = {
            Red = Input { Value = 0, },
            Green = Input { Value = 0, },
            Blue = Input { Value = 0, },
            Input = Input {
               SourceOp = "Blur1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 356.221, 124.55, }, },
      },
      Blur1_2 = Blur {
         Inputs = {
            Filter = Input { Value = FuID { "Box", }, },
            Red = Input { Value = 0, },
            Green = Input { Value = 0, },
            Blue = Input { Value = 0, },
            XBlurSize = Input { Value = 0.4761905, },
            Input = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 356.129, 83.0344, }, },
      },
      EdgeControl_2 = MacroOperator {
         CustomData = {
            Settings = {
               [1] = {
                  Tools = ordered() {
                     EdgeControl_2 = MacroOperator {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = ordered() {
                           MainInput1 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "Input",
                           },
                           Input1 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "LockXY",
                              Default = 1,
                           },
                           Input2 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "XBlurSize",
                              Default = 0.2,
                           },
                           Input3 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "YBlurSize",
                              Default = 1,
                           },
                           Input4 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "Passes",
                              Default = 4,
                           },
                           Input5 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "BlendClone",
                              Default = 0.9047619,
                           },
                           Input6 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "LockXY",
                              Default = 1,
                           },
                           Input7 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "XAmount",
                              Default = -0.0004762,
                           },
                           Input8 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "YAmount",
                              Default = 0,
                           },
                           Input9 = InstanceInput {
                              SourceOp = "ColorCurves1_2_1",
                              Source = "EditAlpha",
                              Name = "Alpha",
                              Default = 1,
                           },
                           Input10 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "Filter",
                           },
                           Input11 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteBlur",
                              Default = 0.1428571,
                           },
                           Input12 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "Passes",
                              Default = 4,
                           },
                           Input13 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteContractExpand",
                              Default = -0.0285714,
                           },
                           Input14 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteGamma",
                              Default = 1,
                           },
                           Input15 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "LowMatteThreshold",
                              ControlGroup = 16,
                              Default = 0,
                           },
                           Input16 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "High",
                              ControlGroup = 16,
                              Default = 1,
                           },
                           Input17 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "InvertMatte",
                              Default = 0,
                           },
                           Input18 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "PostMultiplyImage",
                              Default = 1,
                           },
                        },
                        Outputs = {
                           Output1 = InstanceOutput {
                              SourceOp = "ColorCurves1_2_1Alpha",
                              Source = "Value",
                           },
                        },
                        ViewInfo = GroupInfo { Pos = { -3074.32, -742.606, }, },
                        Tools = ordered() {
                           Blur1_2_1 = Blur {
                              CtrlWShown = false,
                              Inputs = {
                                 Blend = Input { Value = 0.9047619, },
                                 Filter = Input { Value = FuID { "Box", }, },
                                 Red = Input { Value = 0, },
                                 Green = Input { Value = 0, },
                                 Blue = Input { Value = 0, },
                                 XBlurSize = Input { Value = 0, },
                                 Input = Input {
                                    SourceOp = "Loader1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -3.2749, 10.15, }, },
                              Name = "Blur1_2_1",
                           },
                           ErodeDilate1_2_1 = ErodeDilate {
                              CtrlWShown = false,
                              Inputs = {
                                 Red = Input { Value = 0, },
                                 Green = Input { Value = 0, },
                                 Blue = Input { Value = 0, },
                                 XAmount = Input { Value = -0.0004762, },
                                 Input = Input {
                                    SourceOp = "Blur1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -8.18506, 45.665, }, },
                              Name = "ErodeDilate1_2_1",
                           },
                           ColorCurves1_2_1 = ColorCurves {
                              PickColor = true,
                              CtrlWShown = false,
                              Inputs = {
                                 ProcessRed = Input { Value = 0, },
                                 ProcessGreen = Input { Value = 0, },
                                 ProcessBlue = Input { Value = 0, },
                                 EditRed = Input { Value = 0, },
                                 EditGreen = Input { Value = 0, },
                                 EditBlue = Input { Value = 0, },
                                 Red = Input {
                                    SourceOp = "ColorCurves1_2_1Red",
                                    Source = "Value",
                                 },
                                 Green = Input {
                                    SourceOp = "ColorCurves1_2_1Green",
                                    Source = "Value",
                                 },
                                 Blue = Input {
                                    SourceOp = "ColorCurves1_2_1Blue",
                                    Source = "Value",
                                 },
                                 Alpha = Input {
                                    SourceOp = "ColorCurves1_2_1Alpha",
                                    Source = "Value",
                                 },
                                 NumberOfSamplesOnMatchCurve = Input { Value = 64, },
                                 IgnoreTransparent = Input { Value = 1, },
                                 PreDividePostMultiply = Input { Value = 1, },
                                 Input = Input {
                                    SourceOp = "ErodeDilate1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { 9.83496, 84.178, }, },
                              Tools = {
                                 ColorCurves1_2_1Blue = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 68, Green = 68, Blue = 255, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                    Name = "ColorCurves1_2_1Blue",
                                 },
                                 ColorCurves1_2_1Red = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 255, Green = 52, Blue = 52, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                    Name = "ColorCurves1_2_1Red",
                                 },
                                 ColorCurves1_2_1Alpha = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.0906702504027053, 0.251700306116645, }, Flags = { Linear = true, }, },
                                          [0.272010751208116] = { 0.755100918349935, LH = { 0.181340500805411, 0.50340061223329, }, RH = { 0.514673834138744, 0.836733945566623, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.757336917069372, 0.918366972783312, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 204, Green = 204, Blue = 204, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                    Name = "ColorCurves1_2_1Alpha",
                                 },
                                 ColorCurves1_2_1Green = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 0, Green = 255, Blue = 0, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                    Name = "ColorCurves1_2_1Green",
                                 },
                              },
                              Name = "ColorCurves1_2_1",
                           },
                           MatteControl1_1_1 = MatteControl {
                              CtrlWZoom = false,
                              CtrlWShown = false,
                              Inputs = {
                                 MatteBlur = Input { Value = 0.1428571, },
                                 MatteContractExpand = Input { Value = -0.0285714, },
                                 PostMultiplyImage = Input { Value = 1, },
                                 Background = Input {
                                    SourceOp = "ColorCurves1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -9.83496, 129.901, }, },
                              Name = "MatteControl1_1_1",
                           },
                        },
                        Name = "EdgeControl_2",
                     },
                  },
               },
               [2] = {
                  Tools = ordered() {
                     EdgeControl_2 = MacroOperator {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = ordered() {
                           MainInput1 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "Input",
                           },
                           Input1 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "LockXY",
                              Default = 1,
                           },
                           Input2 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "XBlurSize",
                              Default = 0.2,
                           },
                           Input3 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "YBlurSize",
                              Default = 1,
                           },
                           Input4 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "Passes",
                              Default = 4,
                           },
                           Input5 = InstanceInput {
                              SourceOp = "Blur1_2_1",
                              Source = "BlendClone",
                              Default = 0.9047619,
                           },
                           Input6 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "LockXY",
                              Default = 1,
                           },
                           Input7 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "XAmount",
                              Default = -0.0004762,
                           },
                           Input8 = InstanceInput {
                              SourceOp = "ErodeDilate1_2_1",
                              Source = "YAmount",
                              Default = 0,
                           },
                           Input9 = InstanceInput {
                              SourceOp = "ColorCurves1_2_1",
                              Source = "EditAlpha",
                              Name = "Alpha",
                              Default = 1,
                           },
                           Input10 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "Filter",
                           },
                           Input11 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteBlur",
                              Default = 0.1428571,
                           },
                           Input12 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "Passes",
                              Default = 4,
                           },
                           Input13 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteContractExpand",
                              Default = -0.0285714,
                           },
                           Input14 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "MatteGamma",
                              Default = 1,
                           },
                           Input15 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "LowMatteThreshold",
                              ControlGroup = 16,
                              Default = 0,
                           },
                           Input16 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "High",
                              ControlGroup = 16,
                              Default = 1,
                           },
                           Input17 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "InvertMatte",
                              Default = 0,
                           },
                           Input18 = InstanceInput {
                              SourceOp = "MatteControl1_1_1",
                              Source = "PostMultiplyImage",
                              Default = 1,
                           },
                        },
                        Outputs = {
                           Output1 = InstanceOutput {
                              SourceOp = "ColorCurves1_2_1Alpha",
                              Source = "Value",
                           },
                        },
                        ViewInfo = GroupInfo { Pos = { -3074.32, -742.606, }, },
                        Tools = ordered() {
                           Blur1_2_1 = Blur {
                              CtrlWShown = false,
                              Inputs = {
                                 Blend = Input { Value = 0.9047619, },
                                 Filter = Input { Value = FuID { "Box", }, },
                                 Red = Input { Value = 0, },
                                 Green = Input { Value = 0, },
                                 Blue = Input { Value = 0, },
                                 XBlurSize = Input { Value = 0, },
                                 Input = Input {
                                    SourceOp = "Loader1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -3.2749, 10.15, }, },
                           },
                           ErodeDilate1_2_1 = ErodeDilate {
                              CtrlWShown = false,
                              Inputs = {
                                 Red = Input { Value = 0, },
                                 Green = Input { Value = 0, },
                                 Blue = Input { Value = 0, },
                                 XAmount = Input { Value = -0.0004762, },
                                 Input = Input {
                                    SourceOp = "Blur1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -8.18506, 45.665, }, },
                           },
                           ColorCurves1_2_1 = ColorCurves {
                              PickColor = true,
                              CtrlWShown = false,
                              Inputs = {
                                 ProcessRed = Input { Value = 0, },
                                 ProcessGreen = Input { Value = 0, },
                                 ProcessBlue = Input { Value = 0, },
                                 EditRed = Input { Value = 0, },
                                 EditGreen = Input { Value = 0, },
                                 EditBlue = Input { Value = 0, },
                                 Red = Input {
                                    SourceOp = "ColorCurves1_2_1Red",
                                    Source = "Value",
                                 },
                                 Green = Input {
                                    SourceOp = "ColorCurves1_2_1Green",
                                    Source = "Value",
                                 },
                                 Blue = Input {
                                    SourceOp = "ColorCurves1_2_1Blue",
                                    Source = "Value",
                                 },
                                 Alpha = Input {
                                    SourceOp = "ColorCurves1_2_1Alpha",
                                    Source = "Value",
                                 },
                                 NumberOfSamplesOnMatchCurve = Input { Value = 64, },
                                 IgnoreTransparent = Input { Value = 1, },
                                 PreDividePostMultiply = Input { Value = 1, },
                                 Input = Input {
                                    SourceOp = "ErodeDilate1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { 9.83496, 84.178, }, },
                              Tools = {
                                 ColorCurves1_2_1Blue = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 68, Green = 68, Blue = 255, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                 },
                                 ColorCurves1_2_1Red = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 255, Green = 52, Blue = 52, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                 },
                                 ColorCurves1_2_1Alpha = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.0906702504027053, 0.251700306116645, }, Flags = { Linear = true, }, },
                                          [0.272010751208116] = { 0.755100918349935, LH = { 0.181340500805411, 0.50340061223329, }, RH = { 0.514673834138744, 0.836733945566623, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.757336917069372, 0.918366972783312, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 204, Green = 204, Blue = 204, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                 },
                                 ColorCurves1_2_1Green = LUTBezier {
                                    KeyColorSplines = {
                                       [0] = {
                                          [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                                          [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                                       },
                                    },
                                    SplineColor = { Red = 0, Green = 255, Blue = 0, },
                                    CtrlWShown = false,
                                    NameSet = true,
                                 },
                              },
                           },
                           MatteControl1_1_1 = MatteControl {
                              CtrlWZoom = false,
                              CtrlWShown = false,
                              Inputs = {
                                 MatteBlur = Input { Value = 0.1428571, },
                                 MatteContractExpand = Input { Value = -0.0285714, },
                                 PostMultiplyImage = Input { Value = 1, },
                                 Background = Input {
                                    SourceOp = "ColorCurves1_2_1",
                                    Source = "Output",
                                 },
                              },
                              ViewInfo = OperatorInfo { Pos = { -9.83496, 129.901, }, },
                           },
                        },
                     },
                  },
               },
            },
         },
         Inputs = ordered() {
            MainInput1 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "Input",
            },
            Input1 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "LockXY",
               Default = 1,
            },
            Input2 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "XBlurSize",
               Default = 0.2,
            },
            Input3 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "YBlurSize",
               Default = 1,
            },
            Input4 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "Passes",
               Default = 4,
            },
            Input5 = InstanceInput {
               SourceOp = "Blur1_2_1",
               Source = "BlendClone",
               Default = 0.9047619,
            },
            Input6 = InstanceInput {
               SourceOp = "ErodeDilate1_2_1",
               Source = "LockXY",
               Default = 1,
            },
            Input7 = InstanceInput {
               SourceOp = "ErodeDilate1_2_1",
               Source = "XAmount",
               Default = -0.0004762,
            },
            Input8 = InstanceInput {
               SourceOp = "ErodeDilate1_2_1",
               Source = "YAmount",
               Default = 0,
            },
            Input9 = InstanceInput {
               SourceOp = "ColorCurves1_2_1",
               Source = "EditAlpha",
               Name = "Alpha",
               Default = 1,
            },
            Input10 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "Filter",
            },
            Input11 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "MatteBlur",
               Default = 0.1428571,
            },
            Input12 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "Passes",
               Default = 4,
            },
            Input13 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "MatteContractExpand",
               Default = -0.0285714,
            },
            Input14 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "MatteGamma",
               Default = 1,
            },
            Input15 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "LowMatteThreshold",
               ControlGroup = 16,
               Default = 0,
            },
            Input16 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "High",
               ControlGroup = 16,
               Default = 1,
            },
            Input17 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "InvertMatte",
               Default = 0,
            },
            Input18 = InstanceInput {
               SourceOp = "MatteControl1_1_1",
               Source = "PostMultiplyImage",
               Default = 1,
            },
         },
         Outputs = {
            Output1 = InstanceOutput {
               SourceOp = "ColorCurves1_2_1Alpha",
               Source = "Value",
            },
         },
         ViewInfo = GroupInfo { Pos = { 161, 97, }, },
         Tools = ordered() {
            Blur1_2_1 = Blur {
               CtrlWShown = false,
               Inputs = {
                  Blend = Input { Value = 0.9047619, },
                  Filter = Input { Value = FuID { "Box", }, },
                  Red = Input { Value = 0, },
                  Green = Input { Value = 0, },
                  Blue = Input { Value = 0, },
                  XBlurSize = Input { Value = 0, },
                  Input = Input {
                     SourceOp = "Background1",
                     Source = "Output",
                  },
               },
               ViewInfo = OperatorInfo { Pos = { -3.2749, 10.15, }, },
            },
            ErodeDilate1_2_1 = ErodeDilate {
               CtrlWShown = false,
               Inputs = {
                  Red = Input { Value = 0, },
                  Green = Input { Value = 0, },
                  Blue = Input { Value = 0, },
                  XAmount = Input { Value = -0.0004762, },
                  Input = Input {
                     SourceOp = "Blur1_2_1",
                     Source = "Output",
                  },
               },
               ViewInfo = OperatorInfo { Pos = { -8.18506, 45.665, }, },
            },
            ColorCurves1_2_1 = ColorCurves {
               PickColor = true,
               CtrlWShown = false,
               Inputs = {
                  ProcessRed = Input { Value = 0, },
                  ProcessGreen = Input { Value = 0, },
                  ProcessBlue = Input { Value = 0, },
                  EditRed = Input { Value = 0, },
                  EditGreen = Input { Value = 0, },
                  EditBlue = Input { Value = 0, },
                  Red = Input {
                     SourceOp = "ColorCurves1_2_1Red",
                     Source = "Value",
                  },
                  Green = Input {
                     SourceOp = "ColorCurves1_2_1Green",
                     Source = "Value",
                  },
                  Blue = Input {
                     SourceOp = "ColorCurves1_2_1Blue",
                     Source = "Value",
                  },
                  Alpha = Input {
                     SourceOp = "ColorCurves1_2_1Alpha",
                     Source = "Value",
                  },
                  NumberOfSamplesOnMatchCurve = Input { Value = 64, },
                  IgnoreTransparent = Input { Value = 1, },
                  PreDividePostMultiply = Input { Value = 1, },
                  Input = Input {
                     SourceOp = "ErodeDilate1_2_1",
                     Source = "Output",
                  },
               },
               ViewInfo = OperatorInfo { Pos = { 9.83496, 84.178, }, },
               Tools = {
                  ColorCurves1_2_1Blue = LUTBezier {
                     KeyColorSplines = {
                        [0] = {
                           [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                           [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                        },
                     },
                     SplineColor = { Red = 68, Green = 68, Blue = 255, },
                     CtrlWShown = false,
                     NameSet = true,
                  },
                  ColorCurves1_2_1Red = LUTBezier {
                     KeyColorSplines = {
                        [0] = {
                           [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                           [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                        },
                     },
                     SplineColor = { Red = 255, Green = 52, Blue = 52, },
                     CtrlWShown = false,
                     NameSet = true,
                  },
                  ColorCurves1_2_1Alpha = LUTBezier {
                     KeyColorSplines = {
                        [0] = {
                           [0] = { 0, RH = { 0.0906702504027053, 0.251700306116645, }, Flags = { Linear = true, }, },
                           [0.272010751208116] = { 0.755100918349935, LH = { 0.181340500805411, 0.50340061223329, }, RH = { 0.514673834138744, 0.836733945566623, }, Flags = { Linear = true, }, },
                           [1] = { 1, LH = { 0.757336917069372, 0.918366972783312, }, Flags = { Linear = true, }, },
                        },
                     },
                     SplineColor = { Red = 204, Green = 204, Blue = 204, },
                     CtrlWShown = false,
                     NameSet = true,
                  },
                  ColorCurves1_2_1Green = LUTBezier {
                     KeyColorSplines = {
                        [0] = {
                           [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                           [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                        },
                     },
                     SplineColor = { Red = 0, Green = 255, Blue = 0, },
                     CtrlWShown = false,
                     NameSet = true,
                  },
               },
            },
            MatteControl1_1_1 = MatteControl {
               CtrlWZoom = false,
               CtrlWShown = false,
               Inputs = {
                  MatteBlur = Input { Value = 0.1428571, },
                  MatteContractExpand = Input { Value = -0.0285714, },
                  PostMultiplyImage = Input { Value = 1, },
                  Background = Input {
                     SourceOp = "ColorCurves1_2_1",
                     Source = "Output",
                  },
               },
               ViewInfo = OperatorInfo { Pos = { -9.83496, 129.901, }, },
            },
         },
      },
      Background1 = Background {
         CtrlWZoom = false,
         Inputs = {
            Width = Input { Value = 2048, },
            Height = Input { Value = 1556, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            EffectMask = Input {
               SourceOp = "Polygon1",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 276.584, -104.589, }, },
      },
      Polygon1 = PolylineMask {
         DrawMode = "InsertAndModify",
         DrawMode2 = "InsertAndModify",
         Inputs = {
            MaskWidth = Input { Value = 2048, },
            MaskHeight = Input { Value = 1556, },
            PixelAspect = Input { Value = { 1, 1, }, },
            ClippingMode = Input { Value = FuID { "None", }, },
            Polyline = Input {
               SourceOp = "Polygon1Polyline",
               Source = "Value",
            },
            Polyline2 = Input {
               Value = Polyline {
               },
               Disabled = true,
            },
         },
         ViewInfo = OperatorInfo { Pos = { 272.584, -141.589, }, },
      },
      Polygon1Polyline = BezierSpline {
         SplineColor = { Red = 173, Green = 255, Blue = 47, },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, Flags = { Linear = true, LockedY = true, }, Value = Polyline {
                  Closed = true,
                  Points = {
                     { Linear = true, X = -0.0380859375, Y = 0.054627250880003, LX = 0.0271809895833333, LY = -0.000214225302139918, RX = -0.0009765625, RY = -0.0319194520928202, },
                     { Linear = true, X = -0.041015625, Y = -0.041131105273962, LX = 0.0009765625, LY = 0.0319194520928202, RX = 0.02880859375, RY = -0.00107112257791669, },
                     { Linear = true, X = 0.04541015625, Y = -0.0443444736301899, LX = -0.02880859375, LY = 0.00107112257791669, RX = -0.000651041666666667, RY = 0.0327763498218885, },
                     { Linear = true, X = 0.04345703125, Y = 0.0539845749735832, LX = 0.000651041666666667, LY = -0.0327763498218885, RX = -0.0271809895833333, RY = 0.000214225302139918, },
                  },
               }, },
         },
      },
   },
}
Offline

Stefan Kirste

  • Posts: 142
  • Joined: Wed Jul 30, 2014 8:45 am

Re: Edge Blur - Macro

PostMon Feb 01, 2016 9:47 am

hmm, if i convert the macro to group, and want to open it, fusion crashed.
can u send your macro as clean code, before u make it a macro?
and remember, it is easier to help, if u give some information of the fusion version u use.
Offline

Ryan Bloomer

  • Posts: 765
  • Joined: Tue Jul 09, 2013 6:58 pm

Re: Edge Blur - Macro

PostMon Feb 01, 2016 2:13 pm

Thanks Stefan,

I'm using Fusion Studio 7.7.1 on Windows 10.

This flow is what i'm trying to create into a Macro. Is there a better way to get you clean code that just copy paste the flow?

Thanks again,


Code: Select all
{
   Tools = ordered() {
      ColorCurves1_2 = ColorCurves {
         PickColor = true,
         Inputs = {
            ProcessRed = Input { Value = 0, },
            ProcessGreen = Input { Value = 0, },
            ProcessBlue = Input { Value = 0, },
            EditRed = Input { Value = 0, },
            EditGreen = Input { Value = 0, },
            EditBlue = Input { Value = 0, },
            Red = Input {
               SourceOp = "ColorCurves1_2Red",
               Source = "Value",
            },
            Green = Input {
               SourceOp = "ColorCurves1_2Green",
               Source = "Value",
            },
            Blue = Input {
               SourceOp = "ColorCurves1_2Blue",
               Source = "Value",
            },
            Alpha = Input {
               SourceOp = "ColorCurves1_2Alpha",
               Source = "Value",
            },
            NumberOfSamplesOnMatchCurve = Input { Value = 64, },
            IgnoreTransparent = Input { Value = 1, },
            Input = Input {
               SourceOp = "ErodeDilate1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 863, 121, }, },
         Tools = {
            ColorCurves1_2Red = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 255, Green = 52, Blue = 52, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Alpha = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.0906702504027053, 0.251700306116645, }, Flags = { Linear = true, }, },
                     [0.272010751208116] = { 0.755100918349935, LH = { 0.181340500805411, 0.50340061223329, }, RH = { 0.514673834138744, 0.836733945566623, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.757336917069372, 0.918366972783312, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 204, Green = 204, Blue = 204, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Green = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 0, Green = 255, Blue = 0, },
               CtrlWShown = false,
               NameSet = true,
            },
            ColorCurves1_2Blue = LUTBezier {
               KeyColorSplines = {
                  [0] = {
                     [0] = { 0, RH = { 0.333333333333333, 0.333333333333333, }, Flags = { Linear = true, }, },
                     [1] = { 1, LH = { 0.666666666666667, 0.666666666666667, }, Flags = { Linear = true, }, },
                  },
               },
               SplineColor = { Red = 68, Green = 68, Blue = 255, },
               CtrlWShown = false,
               NameSet = true,
            },
         },
      },
      Blur1_2 = Blur {
         Inputs = {
            Filter = Input { Value = FuID { "Box", }, },
            Red = Input { Value = 0, },
            Green = Input { Value = 0, },
            Blue = Input { Value = 0, },
            XBlurSize = Input { Value = 0.4761905, },
         },
         ViewInfo = OperatorInfo { Pos = { 848.894, 40.9724, }, },
      },
      ErodeDilate1_2 = ErodeDilate {
         Inputs = {
            Red = Input { Value = 0, },
            Green = Input { Value = 0, },
            Blue = Input { Value = 0, },
            Input = Input {
               SourceOp = "Blur1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 845.986, 79.488, }, },
      },
      MatteControl1_1 = MatteControl {
         CtrlWZoom = false,
         Inputs = {
            MatteBlur = Input { Value = 0.1428571, },
            MatteContractExpand = Input { Value = 0.0095238, },
            MatteGamma = Input { Value = 0.7619048, },
            PostMultiplyImage = Input { Value = 1, },
            Background = Input {
               SourceOp = "ColorCurves1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 844.765, 172.938, }, },
      },
   },
}
Offline
User avatar

Chad Capeland

  • Posts: 3025
  • Joined: Mon Nov 10, 2014 9:40 pm

Re: Edge Blur - Macro

PostMon Feb 01, 2016 3:12 pm

You are outputting a LUT curve, not an image.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline

Ryan Bloomer

  • Posts: 765
  • Joined: Tue Jul 09, 2013 6:58 pm

Re: Edge Blur - Macro

PostMon Feb 01, 2016 3:43 pm

Thanks Chad, removing the colorCurves did the trick...

if I can just work out how to take this macro and create another set of tools to eat away on either side of the blur. I'm thinking I could do it with a sobel filter and some channel booleans to subtract alpha. or maybe a erode/dialate and some inverted mattes.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 43 guests