aŋ
i
nfo
m
acros
Fltr_EdgeBlur
You can use Filter node to generate an edge mask using the sobel FilterType. This can be used for the Blur node.
.
s
etting/
M
acro:
Copy
--[[-- Written by : Nguyen Tuan An Written on : Jan, 2024 Version 1.0 --]]-- { Tools = ordered() { Fltr_EdgeBlur = GroupOperator { CtrlWZoom = false, CustomData = { Path = { Map = { ["Setting:"] = "Macros:\\" } }, }, Inputs = ordered() { Input1 = InstanceInput { SourceOp = "Blur1", Source = "Filter", }, Input2 = InstanceInput { SourceOp = "Blur1", Source = "Red", Name = " ", ControlGroup = 2, Default = 1, }, Input3 = InstanceInput { SourceOp = "Blur1", Source = "Green", ControlGroup = 2, Default = 1, }, Input4 = InstanceInput { SourceOp = "Blur1", Source = "Blue", ControlGroup = 2, Default = 1, }, Input5 = InstanceInput { SourceOp = "Blur1", Source = "Alpha", ControlGroup = 2, Default = 1, }, Input6 = InstanceInput { SourceOp = "Blur1", Source = "LockXY", Default = 1, }, Input7 = InstanceInput { SourceOp = "Blur1", Source = "XBlurSize", Default = 1, }, Input8 = InstanceInput { SourceOp = "Blur1", Source = "YBlurSize", Default = 1, }, Input9 = InstanceInput { SourceOp = "Blur1", Source = "Passes", Default = 4, }, MainInput1 = InstanceInput { SourceOp = "PipeRouter1", Source = "Input", } }, Outputs = { MainOutput1 = InstanceOutput { SourceOp = "Blur1", Source = "Output", } }, ViewInfo = GroupInfo { Pos = { 66, 196.455 }, Flags = { AllowPan = false, AutoSnap = true, RemoveRouters = true }, Size = { 287.667, 262.849, 143.833, 24.2424 }, Direction = "Horizontal", PipeStyle = "Direct", Scale = 1, Offset = { 0, 0 } }, Tools = ordered() { Blur1 = Blur { CtrlWZoom = false, CtrlWShown = false, Inputs = { EffectMask = Input { SourceOp = "ErodeDilate1", Source = "Output", }, Filter = Input { Value = FuID { "Fast Gaussian" }, }, Input = Input { SourceOp = "PipeRouter1", Source = "Output", }, }, ViewInfo = OperatorInfo { Pos = { 80, 205.758 } }, }, PipeRouter1 = PipeRouter { CtrlWShown = false, ViewInfo = PipeRouterInfo { Pos = { 80, 7.75758 } }, }, Filter1 = Filter { CtrlWShown = false, Inputs = { FilterType = Input { Value = 3, }, Input = Input { SourceOp = "PipeRouter1", Source = "Output", }, }, ViewInfo = OperatorInfo { Pos = { -81.667, 131.44 } }, }, ErodeDilate1 = ErodeDilate { CtrlWShown = false, Inputs = { Filter = Input { Value = 2, }, XAmount = Input { Value = 0.001, Expression = "Blur1.XBlurSize / 1000", }, Input = Input { SourceOp = "Filter1", Source = "Output", }, }, ViewInfo = OperatorInfo { Pos = { -81.667, 205.758 } }, } }, Colors = { TileColor = { R = 0.725490196078431, G = 0.690196078431373, B = 0.592156862745098 }, } } } }