Thank you everyone and Happy New Year!

The Thanks scores for 2019 are in, make sure to read all about last year's highlights -> here <- !

[Update] Depth Defocus 7.5  [SUBMITTED]

Moderator: SecondMan

User avatar
SecondMan
Site Admin
Posts: 3930
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 12
Location: Vancouver, Canada
Been thanked: 12 times
Contact:

[Update] Depth Defocus 7.5  [SUBMITTED]

#1

Post by SecondMan » Fri Apr 20, 2018 1:35 pm

DepthDefocus.png

Code: Select all

Atom {
	Name = "Depth Defocus",
	Category = "Tools/Blur",
	Author = "Gregory Chalenko",
	Version = 7.5,
	Date = {2018, 4, 20},

	Description = [[<p>Creates the depth of field effect using an additional image as a depth map.</p>

<p>This tool features fine tuning for the amount of highlight blooming, natural-looking and easily controllable deceleration of defocusing with distance, separate foreground/background strength control, a possibility to select any image channel as the depth map.</p>

<p>The channel used as the depth map should be 32 bit float. For correct perspective adjustment of the strength, you must make sure that the depth channel has no negative values</p>

<p>VFXPedia Thread:<br>
https://www.steakunderwater.com/VFXPedia/96.0.243.189/indexe0a0.html?title=Settings_and_Macros/DepthDefocus_Description</p>

<p>by Gregory Chalenko<br>
http://www.compositing.ru</p>]],

	Deploy = {
		"Macros/Blur/DepthDefocus.setting",
	},
}
You do not have the required permissions to view the files attached to this post.

User avatar
steakkon
Posts: 10
Joined: Wed May 30, 2018 5:23 am
Location: Berlin
Contact:

Problem with depth out of an internaly rendered image. How set it up correctly?

#2

Post by steakkon » Fri Aug 10, 2018 2:34 am

Hi SecondMan,

I am really happy about your Macro. When it comes to DOF for my EXR-Renderings it is really beautiful.
However now I try to use it on simple MotionGraphics but can't get it to work properly. As in my example artifacts and when I switch the Output Image to something different than Final Result I get the red dot error. Is there a problem with my Z-Channel?

thank you

Code: Select all

{
	Tools = ordered() {
		Renderer3D1 = Renderer3D {
			CustomData = {
				ToolVersion = 2,
			},
			Inputs = {
				GlobalOut = Input { Value = 250, },
				Width = Input { Value = 1920, },
				Height = Input { Value = 1080, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
				SceneInput = Input {
					SourceOp = "Merge3D1",
					Source = "Output",
				},
				["RendererSoftware.Channels.Nest"] = Input { Value = 1, },
				["RendererSoftware.Channels.Z"] = Input { Value = 1, },
				["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
				["RendererOpenGL.Channels.Nest"] = Input { Value = 1, },
				["RendererOpenGL.Channels.Z"] = Input { Value = 1, },
				["RendererOpenGL.Channels.ZSS"] = Input { Value = 1, },
				["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
				["RendererOpenGLUV.LightingEnabled"] = Input { Value = 1, },
			},
			ViewInfo = OperatorInfo { Pos = { 880, 181.5 } },
		},
		Scene = GroupOperator {
			NameSet = true,
			Outputs = {
				Output1 = InstanceOutput {
					SourceOp = "Merge3D1",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo {
				Pos = { 660, 181.5 },
				Flags = {
					AllowPan = false,
					GridSnap = true,
					AutoSnap = true,
					RemoveRouters = true
				},
				Size = { 401, 262.3, 200.5, 22 },
				Direction = "Horizontal",
				PipeStyle = "Orthogonal",
				Scale = 1,
				Offset = { -467.5, -104.8 }
			},
			Tools = ordered() {
				Camera3D1 = Camera3D {
					Inputs = {
						["Transform3DOp.Translate.Z"] = Input { Value = 1.68289886798384, },
						["Transform3DOp.Rotate.Y"] = Input { Value = -24.2, },
						["Transform3DOp.PivotNest"] = Input { Value = 1, },
						["Transform3DOp.Pivot.Z"] = Input {
							Value = -1.68289886798384,
							Expression = "-Transform3DOp.Translate.Z",
						},
						AoV = Input { Value = 19.2642683071402, },
						["Stereo.Mode"] = Input { Value = FuID { "Mono" }, },
						FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
						ApertureW = Input { Value = 0.831496062992126, },
						ApertureH = Input { Value = 0.467716535433071, },
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
						["MtlStdInputs.MaterialID"] = Input { Value = 2, },
					},
					ViewInfo = OperatorInfo { Pos = { 605, 313.5 } },
				},
				Shape3D1_2 = Shape3D {
					Inputs = {
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
						["Transform3DOp.Translate.X"] = Input { Value = -0.342650785260018, },
						["Transform3DOp.Translate.Y"] = Input { Value = 0.0367100278566816, },
						["Transform3DOp.Translate.Z"] = Input { Value = 1.15972462326651, },
						Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 1, },
						["SurfaceSphereInputs.Radius"] = Input { Value = 0.1, },
						["SurfaceSphereInputs.SubdivisionLevelBase"] = Input { Value = 60, },
						["SurfaceSphereInputs.SubdivisionLevelHeight"] = Input { Value = 60, },
						["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 280.5 } },
				},
				Merge3D2 = Merge3D {
					Inputs = {
						PassThroughLights = Input { Value = 1, },
						SceneInput1 = Input {
							SourceOp = "AmbientLight1",
							Source = "Output",
						},
						SceneInput2 = Input {
							SourceOp = "PointLight1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 550, 148.5 } },
				},
				Merge3D1 = Merge3D {
					Inputs = {
						SceneInput1 = Input {
							SourceOp = "Shape3D1",
							Source = "Output",
						},
						SceneInput2 = Input {
							SourceOp = "Merge3D2",
							Source = "Output",
						},
						SceneInput3 = Input {
							SourceOp = "Camera3D1",
							Source = "Output",
						},
						SceneInput5 = Input {
							SourceOp = "Shape3D2",
							Source = "Output",
						},
						SceneInput4 = Input {
							SourceOp = "Shape3D1_1",
							Source = "Output",
						},
						SceneInput6 = Input {
							SourceOp = "Shape3D1_2",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 550, 181.5 } },
				},
				Shape3D2 = Shape3D {
					Inputs = {
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 4, },
						["SurfaceConeInputs.Radius"] = Input { Value = 7.56, },
						["SurfaceConeInputs.ObjectID.ObjectID"] = Input { Value = 5, },
						["Transform3DOp.Rotate.Z"] = Input { Value = 15.6, },
						Shape = Input { Value = FuID { "SurfaceTorusInputs" }, },
						["MtlStdInputs.MaterialID"] = Input { Value = 3, },
						["SurfaceTorusInputs.Radius"] = Input { Value = 0.35, },
						["SurfaceTorusInputs.Section"] = Input { Value = 0.001, },
						["SurfaceTorusInputs.SubdivisionLevelBase"] = Input { Value = 80, },
						["SurfaceTorusInputs.SubdivisionLevelHeight"] = Input { Value = 79, },
						["SurfaceTorusInputs.ObjectID.ObjectID"] = Input { Value = 6, }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 247.5 } },
				},
				Shape3D1_1 = Shape3D {
					Inputs = {
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
						["Transform3DOp.Translate.X"] = Input { Value = -0.352329380996419, },
						["Transform3DOp.Rotate.Y"] = Input {
							Value = 1030,
							Expression = "time*10",
						},
						["Transform3DOp.Rotate.Z"] = Input { Value = 15.6, },
						["Transform3DOp.PivotNest"] = Input { Value = 1, },
						["Transform3DOp.Pivot.X"] = Input { Value = 0.346, },
						Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 1, },
						["SurfaceSphereInputs.Radius"] = Input { Value = 0.01, },
						["SurfaceSphereInputs.SubdivisionLevelBase"] = Input { Value = 60, },
						["SurfaceSphereInputs.SubdivisionLevelHeight"] = Input { Value = 60, },
						["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 214.5 } },
				},
				PointLight1 = LightPoint {
					Inputs = {
						["Transform3DOp.Translate.X"] = Input { Value = -0.491380107200942, },
						["Transform3DOp.Translate.Y"] = Input { Value = 0.661599634877401, },
						["Transform3DOp.Translate.Z"] = Input { Value = 0.489565931260532, },
						Intensity = Input { Value = 0.124, },
						DecayType = Input { Value = 1, },
						DecayRate = Input { Value = 0.0352, },
					},
					ViewInfo = OperatorInfo { Pos = { 440, 115.5 } },
				},
				AmbientLight1 = LightAmbient {
					Inputs = {
						Intensity = Input { Value = 0.808, },
					},
					ViewInfo = OperatorInfo { Pos = { 440, 148.5 } },
				},
				Shape3D1 = Shape3D {
					Inputs = {
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
						Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 1, },
						["SurfaceSphereInputs.Radius"] = Input { Value = 0.1, },
						["SurfaceSphereInputs.SubdivisionLevelBase"] = Input { Value = 60, },
						["SurfaceSphereInputs.SubdivisionLevelHeight"] = Input { Value = 60, },
						["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 181.5 } },
				}
			},
		},
		DepthDefocus = MacroOperator {
			CtrlWZoom = false,
			CustomData = {
				HelpPage = "https://www.steakunderwater.com/VFXPedia/96.0.243.189/indexe0a0.html?title=Settings_and_Macros/DepthDefocus_Description",
			},
			Inputs = ordered() {
				Comments = Input { Value = "Depth Defocus for Fusion 6.3 and above\r\n\r\nIn v07-4:\rDouble Alpha bug fixed\r\n\r\nby Gregory Chalenko\r\nwww.compositing.ru", },
				Input = InstanceInput {
					SourceOp = "ChangeDepth",
					Source = "Input",
				},
				DepthMap = InstanceInput {
					SourceOp = "Instance_ChangeDepth",
					Source = "Input",
					Name = "Depth Map",
				},
				DepthMapChannel = InstanceInput {
					SourceOp = "Bol_ChannelSelector",
					Source = "BlurChannel",
					Name = "Depth Map Channel",
				},
				InvertDepthMap = InstanceInput {
					SourceOp = "Bol_ChannelSelector",
					Source = "InvertDepthMap",
				},
				FocalPoint = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint",
					Source = "FocalPoint",
					Name = "Focal Point",
					ControlGroup = 4,
					Default = 0.5,
				},
				DefocusStrength = InstanceInput {
					SourceOp = "VariBlur",
					Source = "DefocusStrength",
					Default = 5,
				},
				ForegroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_ForegroundMap",
					Source = "ForegroundDefocusMultiplier",
					Default = 1,
				},
				BackgroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_BackgroundMap",
					Source = "GainRed",
					Name = "Background Defocus Multiplier",
					Default = 1,
				},
				PerspectiveCorrection = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint",
					Source = "Gamma",
					Name = "Perspective Correction (deceleration of strength with distance)",
					MinScale = 1,
					Default = 2,
				},
				SharpZone = InstanceInput {
					SourceOp = "BC_SharpZone",
					Source = "SharpZone",
					Default = 0,
				},
				Anamorphic = InstanceInput {
					SourceOp = "VariBlur",
					Source = "StartEndRenderScripts",
					Name = "Anamorphic",
					Default = 0,
				},
				XDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur",
					Source = "XDefocusMultiplier",
					Default = 1,
				},
				YDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur",
					Source = "YDefocusMultiplier",
					Default = 1,
				},
				ChromaticAberrations = InstanceInput {
					SourceOp = "Clr_ForegroundMap",
					Source = "ChromaticAberrations",
				},
				EnableCromaticAberrations = InstanceInput {
					SourceOp = "Bol_ChromaticAberrations",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Chromatic Aberrations",
				},
				AxialChromaticAberrationsSlider = InstanceInput {
					SourceOp = "Clr_ForegroundMap",
					Source = "AxialChromaticAberrationsSlider",
					Default = 1.1,
				},
				RedDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur",
					Source = "RedDefocusMultiplier",
					Default = 1,
				},
				GreenDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurG",
					Source = "GreenDefocusMultiplier",
					Default = 1,
				},
				BlueDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurB",
					Source = "BlueDefocusMultiplier",
					Default = 1,
				},
				BokehProfile = InstanceInput {
					SourceOp = "Bol_AddBokehProfile",
					Source = "BokehProfile",
				},
				EnableBokehProfiling = InstanceInput {
					SourceOp = "Bol_AddBokehProfile",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Bokeh Profiling",
					Default = 0,
				},
				EditRed = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "EditRed",
				},
				EditGreen = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "EditGreen",
				},
				EditBlue = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "EditBlue",
				},
				BokehProfileRed = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "Red",
					ControlGroup = 1,
				},
				BokehProfileGreen = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "Green",
					ControlGroup = 1,
				},
				BokehProfileBlue = InstanceInput {
					SourceOp = "ColorCurves",
					Source = "Blue",
					ControlGroup = 1,
				},
				BokehProfileStrength = InstanceInput {
					SourceOp = "Bol_AddBokehProfile",
					Source = "BokehProfileStrength",
					Default = 1,
				},
				BlurringMethod = InstanceInput {
					SourceOp = "VariBlur",
					Source = "Method",
					Name = "Blurring Method",
					Default = 4,
				},
				Quality = InstanceInput {
					SourceOp = "VariBlur",
					Source = "Quality",
					Default = 4,
				},
				EnableEdgeArtefactsReduction = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Edge Artefacts Reduction",
					Default = 0,
				},
				ReduceEdgeArtefacts = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts",
					Source = "XBlurSize",
					Name = "Reduce Edge Artefacts",
					Default = 1,
				},
				PreGammaPostGamma = InstanceInput {
					SourceOp = "BC_Regamma",
					Source = "PreGammaPostGamma",
				},
				ImageGamma = InstanceInput {
					SourceOp = "BC_Regamma",
					Source = "Gamma",
					Name = "Image Gamma",
					Default = 2.2,
				},
				Depth = InstanceInput {
					SourceOp = "ChangeDepth",
					Source = "Depth",
					Name = "Set Depth",
				},
				OutputImage = InstanceInput {
					SourceOp = "DepthDefocusMacro",
					Source = "OutputImage",
				},
				ConnectZBufferToTheOutput = InstanceInput {
					SourceOp = "Bol_ZConnection",
					Source = "ConnectZBuffer",
					Name = "Connect Z Buffer to the Output",
				},
				Blend = InstanceInput {
					SourceOp = "VariBlur",
					Source = "BlendClone",
					Name = "Blend",
					Page = "Common Controls",
					Default = 1,
				},
				ProcessWhenBlendIs00 = InstanceInput {
					SourceOp = "VariBlur",
					Source = "ProcessWhenBlendIs00",
					Default = 0,
				},
				ApplyMaskInverted = InstanceInput {
					SourceOp = "VariBlur",
					Source = "ApplyMaskInverted",
					Default = 0,
				},
				MultiplyByMask = InstanceInput {
					SourceOp = "VariBlur",
					Source = "MultiplyByMask",
					Default = 0,
				},
				FitMask = InstanceInput {
					SourceOp = "VariBlur",
					Source = "FitMask",
				},
				MaskChannel = InstanceInput {
					SourceOp = "VariBlur",
					Source = "MaskChannel",
					Default = 3,
				},
				MaskHigh = InstanceInput {
					SourceOp = "VariBlur",
					Source = "MaskHigh",
					ControlGroup = 12,
					Default = 1,
				},
				MaskLow = InstanceInput {
					SourceOp = "VariBlur",
					Source = "MaskLow",
					ControlGroup = 12,
					Default = 0,
				},
				EffectMask = InstanceInput {
					SourceOp = "PipeRouter4",
					Source = "Input",
				}
			},
			Outputs = {
				Output = InstanceOutput {
					SourceOp = "DepthDefocusMacro",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo { Pos = { 1155, 247.5 } },
			Tools = ordered() {
				ChangeDepth = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Input = Input {
							SourceOp = "Merge1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 10.6 } },
				},
				Bol_ChannelSelector = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						ProcessAlpha = Input { Value = 0, },
						Operation = Input {
							Value = 10,
							Expression = "iif(InvertDepthMap==1,10,0)",
						},
						ToRed = Input {
							Value = 18,
							Expression = "iif(BlurChannel<4,BlurChannel,18)",
						},
						Background = Input {
							SourceOp = "Instance_ChangeDepth",
							Source = "Output",
						},
						InvertDepthMap = Input { Value = 1, },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 76.6 } },
					UserControls = ordered() {
						BlurChannel = {
							{ MBTNC_AddButton = "Red" },
							{ MBTNC_AddButton = "Green" },
							{ MBTNC_AddButton = "Blue" },
							{ MBTNC_AddButton = "Alpha" },
							{ MBTNC_AddButton = "Z" },
							INPID_InputControl = "MultiButtonControl",
							LINKID_DataType = "Number",
							MBTNC_StretchToFit = true,
							IC_ControlPage = 0,
							INPS_Name = "Blur Channel",
							INP_Default = 4,
						},
						InvertDepthMap = {
							LINKID_DataType = "Number",
							INP_Default = 0,
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							LINKS_Name = "Invert Depth Map",
						}
					}
				},
				BC_Degamma = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "BC_Regamma",
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur.Blend==0,0,BC_Regamma.PreGammaPostGamma)" },
						Direction = Input { Value = 1, },
						Input = Input {
							SourceOp = "ChangeDepth",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 43.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				VariBlur = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "BlendClone", },
						Method = Input { Value = 2, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 9.62,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 9.62,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						DefocusStrength = Input { Value = 9.62, },
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 0, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INPID_InputControl = "SliderControl",
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INP_Default = 1,
						},
						DefocusStrength = {
							INP_Default = 5,
							INP_MaxScale = 10,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 5,
							LINKS_Name = "Defocus Strength",
						},
						XDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "X Defocus Multiplier",
						},
						YDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Y Defocus Multiplier",
						},
						RedDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Red Defocus Multiplier",
						}
					}
				},
				VariBlurG = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur.BlendClone,Bol_ChromaticAberrations.ProcessWhenBlendIs00)", },
						ProcessRed = Input { Value = 0, },
						ProcessBlue = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur.Method",
						},
						Quality = Input { Expression = "VariBlur.Quality", },
						BlurChannel = Input { Value = 1, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur.DefocusStrength*VariBlur.XDefocusMultiplier*GreenDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur.DefocusStrength*VariBlur.YDefocusMultiplier*GreenDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Green Defocus Multiplier",
						}
					}
				},
				VariBlurB = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "iif(BlueDefocusMultiplier==VariBlur.RedDefocusMultiplier,0,math.min(VariBlur.BlendClone,Bol_ChromaticAberrations.ProcessWhenBlendIs00))",
						},
						ProcessRed = Input { Value = 0, },
						ProcessGreen = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur.Method",
						},
						Quality = Input { Expression = "VariBlur.Quality", },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur.DefocusStrength*VariBlur.XDefocusMultiplier*BlueDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur.DefocusStrength*VariBlur.YDefocusMultiplier*BlueDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "VariBlurG",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Blue Defocus Multiplier",
						}
					}
				},
				BC_Regamma = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur.Blend==0,0,BC_Regamma.PreGammaPostGamma)", },
						Alpha = Input { Value = 1, },
						Gamma = Input { Value = 2.2, },
						Input = Input {
							SourceOp = "Bol_AddBokehProfile",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						PreGammaPostGamma = {
							LINKID_DataType = "Number",
							INP_Default = 1,
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							LINKS_Name = "Pre-Gamma / Post-Gamma",
						}
					}
				},
				Bol_ZConnection = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "ConnectZBuffer", },
						ToRed = Input { Value = 4, },
						ToGreen = Input { Value = 4, },
						ToBlue = Input { Value = 4, },
						ToAlpha = Input { Value = 4, },
						EnableExtraChannels = Input { Value = 1, },
						ToZBuffer = Input { Value = 0, },
						Background = Input {
							SourceOp = "BC_Regamma",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_ChannelSelector",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						ConnectZBuffer = {
							INPID_InputControl = "CheckboxControl",
							LINKID_DataType = "Number",
							IC_ControlPage = 2,
							INPS_Name = "Connect Z Buffer",
							INP_Default = 1,
						}
					}
				},
				DepthDefocusMacro = Dissolve {
					Transitions = {
						[0] = "DFTDissolve"
					},
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Mix = Input {
							Value = 0,
							Expression = "iif(OutputImage==3,0,1)",
						},
						Background = Input {
							SourceOp = "Bol_ZConnection",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_SharpZoneConnection",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 274.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						OutputImage = {
							{ MBTNCD_ButtonWidth = 0.333, MBTNC_AddButton = "Depth Channel" },
							{ MBTNC_AddButton = "Defocus Strength" },
							{ MBTNC_AddButton = "Sharp Zone" },
							{ MBTNCD_ButtonWidth = 1, MBTNC_AddButton = "Final Result" },
							INP_Default = 3,
							INPID_InputControl = "MultiButtonControl",
							IC_ControlPage = 0,
							MBTNC_StretchToFit = true,
							LINKID_DataType = "Number",
							LINKS_Name = "Output Image",
						}
					}
				},
				BOL_Maximum = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro.OutputImage,1)", },
						Operation = Input { Value = 8, },
						Background = Input {
							SourceOp = "Clr_BackgroundMap",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Clr_ForegroundMap",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 175.6 } },
				},
				BC_SharpZone = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro.OutputImage,1)", },
						ApplyMaskInverted = Input { Value = 1, },
						Brightness = Input {
							Value = -0.278,
							Expression = "-SharpZone",
						},
						ClipBlack = Input { Value = 1, },
						Input = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts",
							Source = "Output",
						},
						SharpZone = Input { Value = 0.278, },
						EffectMask = Input {
							SourceOp = "Bitmap2",
							Source = "Mask",
						}
					},
					ViewInfo = OperatorInfo { Pos = { -165, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						SharpZone = {
							INP_Default = 0,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 5,
							LINKS_Name = "Sharp Zone",
						}
					}
				},
				Bitmap1 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Invert = Input { Value = 1, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.2,
							Expression = "Low+SharpZoneDecay",
						},
						SharpZoneDecay = Input { Value = 0.2, },
					},
					ViewInfo = OperatorInfo { Pos = { -110, 274.6 } },
					UserControls = ordered() {
						SharpZoneDecay = {
							LINKID_DataType = "Number",
							LINKS_Name = "Sharp Zone Decay",
							IC_ControlPage = 0,
							INPID_InputControl = "SliderControl",
							INP_Default = 0,
						}
					}
				},
				BC_CurvatureFocalPoint = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						CromaticAberrations = Input { Value = 1, },
						Blend = Input { Expression = "math.min(DepthDefocusMacro.OutputImage,1)", },
						Gamma = Input { Value = 2, },
						Brightness = Input { Expression = "iif(Bol_ChannelSelector.InvertDepthMap==1, (1-FocalPoint)^(1/Gamma)*-1, -FocalPoint^(1/Gamma))", },
						Input = Input {
							SourceOp = "Bol_ChannelSelector",
							Source = "Output",
						},
						FocalPoint = Input { Value = 3.03515625, },
					},
					ViewInfo = OperatorInfo { Pos = { -275, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						FocalPoint = {
							IC_ControlGroup = 1,
							LINKID_DataType = "Number",
							IC_ControlID = 12,
							INPID_InputControl = "ColorControl",
							CLRC_ColorSpace = 0,
							IC_ControlPage = 0,
							INPS_Name = "Focal Point",
							INP_Default = 0.5,
						}
					}
				},
				Clr_BackgroundMap = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro.OutputImage,1)", },
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations.ProcessWhenBlendIs00==1,GainRed*Clr_ForegroundMap.AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -385, 175.6 } },
				},
				Clr_ForegroundMap = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						GainRed = Input {
							Value = -1,
							Expression = "-ForegroundDefocusMultiplier",
						},
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations.ProcessWhenBlendIs00==1,GainRed/AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 142.6 } },
					UserControls = ordered() {
						ForegroundDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Foreground Defocus Multiplier",
						},
						AxialChromaticAberrationsSlider = {
							LINKS_Name = "Axial Chromatic Aberrations",
							INP_MaxScale = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							INP_Default = 1.1,
						},
						ChromaticAberrations = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 5,
							IC_ControlPage = 0,
							LINKS_Name = "Chromatic Aberrations",
							INP_Default = 0,
						}
					}
				},
				Bitmap2 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Level = Input { Value = 0.5, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.278,
							Expression = "-BC_SharpZone.Brightness",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -220, 241.6 } },
				},
				VBl_ReduceEdgeArtefacts = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*math.min(DepthDefocusMacro.OutputImage,1)",
						},
						Method = Input { Value = 2, },
						XBlurSize = Input { Value = 0, },
						Input = Input {
							SourceOp = "BOL_Maximum",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BOL_Maximum",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 208.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.513725490196078, B = 0.345098039215686 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_SharpZoneConnection = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro.OutputImage,1)", },
						ToRed = Input {
							Value = 5,
							Expression = "iif(DepthDefocusMacro.OutputImage==2,3,5)",
						},
						ToGreen = Input {
							Value = 5,
							Expression = "ToRed",
						},
						ToBlue = Input {
							Value = 5,
							Expression = "ToRed",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bitmap1",
							Source = "Mask",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_ChangeDepth = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "ChangeDepth",
					Inputs = {
						Input = Input {
							SourceOp = "Renderer3D1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 43.6 } },
				},
				PipeRouter4 = PipeRouter {
					CtrlWShown = false,
					ViewInfo = PipeRouterInfo { Pos = { 220, 274.6 } },
				},
				Bol_ChromaticAberrations = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00",
						},
						ProcessRed = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						ToRed = Input { Value = 4, },
						ToBlue = Input {
							Value = 4,
							Expression = "iif(VariBlurB.BlueDefocusMultiplier==1,4,2)",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "VariBlur",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "VariBlurB",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 110, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				ColorCurves = ColorCurves {
					PickColor = true,
					CtrlWShown = false,
					Inputs = {
						EditAlpha = Input { Value = 0, },
						Red = Input {
							SourceOp = "ColorCurvesRed",
							Source = "Value",
						},
						Green = Input {
							SourceOp = "ColorCurvesGreen",
							Source = "Value",
						},
						Blue = Input {
							SourceOp = "ColorCurvesBlue",
							Source = "Value",
						},
						Alpha = Input {
							SourceOp = "ColorCurvesAlpha",
							Source = "Value",
						},
						Input = Input {
							SourceOp = "Bol_EdgeSubtract",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 208.6 } },
					Tools = {
						ColorCurvesRed = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 255, Green = 52, Blue = 52 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurvesBlue = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 68, Green = 68, Blue = 255 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurvesAlpha = 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 = 204, Green = 204, Blue = 204 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurvesGreen = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 0, Green = 255, Blue = 0 },
							CtrlWShown = false,
							NameSet = true,
						}
					},
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_EdgeSubtract = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Operation = Input { Value = 2, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_Bol_ChromaticAberrations",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 175.6 } },
				},
				Instance_Bol_ChromaticAberrations = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "Bol_ChromaticAberrations",
					Inputs = {
						Blend = Input { Expression = "ProcessWhenBlendIs00" },
						ToBlue = Input { Expression = "iif(VariBlurB.BlueDefocusMultiplier==1,4,2)" },
						Background = Input {
							SourceOp = "Instance_VariBlur",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_VariBlurB",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input { },
						Matte = Input { }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_VariBlur = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlur",
					Inputs = {
						Blend = Input { Expression = "BlendClone" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur.Method"
						},
						XBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier*1"
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier*1"
						},
						Input = Input {
							SourceOp = "BC_Degamma",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 275, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INPID_InputControl = "SliderControl",
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INP_Default = 1,
						},
						DefocusStrength = {
							INP_Default = 5,
							INP_MaxScale = 10,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 5,
							LINKS_Name = "Defocus Strength",
						},
						XDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "X Defocus Multiplier",
						},
						YDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Y Defocus Multiplier",
						},
						RedDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Red Defocus Multiplier",
						}
					}
				},
				Instance_VariBlurG = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurG",
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur.BlendClone,Bol_ChromaticAberrations.ProcessWhenBlendIs00)" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur.Method"
						},
						Quality = Input { Expression = "VariBlur.Quality" },
						XBlurSize = Input { Expression = "VariBlur.DefocusStrength*VariBlur.XDefocusMultiplier*GreenDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur.DefocusStrength*VariBlur.YDefocusMultiplier*GreenDefocusMultiplier" },
						Input = Input {
							SourceOp = "BC_Degamma",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Green Defocus Multiplier",
						}
					}
				},
				Instance_VariBlurB = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurB",
					Inputs = {
						Blend = Input { Expression = "iif(BlueDefocusMultiplier==VariBlur.RedDefocusMultiplier,0,math.min(VariBlur.BlendClone,Bol_ChromaticAberrations.ProcessWhenBlendIs00))" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur.Method"
						},
						Quality = Input { Expression = "VariBlur.Quality" },
						XBlurSize = Input { Expression = "VariBlur.DefocusStrength*VariBlur.XDefocusMultiplier*BlueDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur.DefocusStrength*VariBlur.YDefocusMultiplier*BlueDefocusMultiplier" },
						Input = Input {
							SourceOp = "Instance_VariBlurG",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Blue Defocus Multiplier",
						}
					}
				},
				Bol_AddBokehProfile = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*BokehProfileStrength",
						},
						Operation = Input { Value = 1, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "ColorCurves",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 175.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BokehProfileStrength = {
							LINKID_DataType = "Number",
							LINKS_Name = "Bokeh Profile Strength",
							INPID_InputControl = "SliderControl",
							INPS_Name = "BokehProfileStrength",
							INP_Default = 1,
						},
						BokehProfile = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 8,
							IC_ControlPage = 0,
							LINKS_Name = "Bokeh Profile",
							INP_Default = 0,
						}
					}
				}
			},
			Colors = {
				TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
				TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
			}
		},
		Merge1 = Merge {
			Inputs = {
				Background = Input {
					SourceOp = "Background1",
					Source = "Output",
				},
				Foreground = Input {
					SourceOp = "Renderer3D1",
					Source = "Output",
				},
				PerformDepthMerge = Input { Value = 0, },
			},
			ViewInfo = OperatorInfo { Pos = { 1155, 181.5 } },
		},
		Background1 = Background {
			Inputs = {
				GlobalOut = Input { Value = 250, },
				Width = Input { Value = 1920, },
				Height = Input { Value = 1080, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
				TopLeftRed = Input { Value = 0.63921568627451, },
				TopLeftGreen = Input { Value = 0.517647058823529, },
				TopLeftBlue = Input { Value = 0.607843137254902, },
			},
			ViewInfo = OperatorInfo { Pos = { 1155, 148.5 } },
		}
	}
}

User avatar
SecondMan
Site Admin
Posts: 3930
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 12
Location: Vancouver, Canada
Been thanked: 12 times
Contact:

Re: [Update] Depth Defocus 7.5

#3

Post by SecondMan » Fri Aug 10, 2018 9:41 am

Hi steakkon,


It's not my Macro - it was made back in the day by the great Gringo. But I'm glad you like it :)

steakkon wrote:
Fri Aug 10, 2018 2:34 am
When it comes to DOF for my EXR-Renderings it is really beautiful.

Can you post an example of this so we can compare?

User avatar
steakkon
Posts: 10
Joined: Wed May 30, 2018 5:23 am
Location: Berlin
Contact:

Re: [Update] Depth Defocus 7.5

#4

Post by steakkon » Fri Aug 17, 2018 2:31 am

Hi SecondMan,

thank you.
Here is an EXR-Still out of V-Ray for Cinema4D where the DepthFocus works pretty nice. I attached a DOF with Frischluft too.
exr_Scene_DepthDefocus.jpg
exr_Scene_Frischluft.jpg

However my problem is the following:
fusion_Scene_DepthDefocus.jpg
fusion_Scene_Frischluft.jpg
I just can't prevent DepthDefocus to exaggerate the alpha edges. Or maybe it is because it seems that DepthDefocus renders the source pixels somehow over the blur again. Therefore the edges maybe look this hard. Compared to Frischluft you can see the sharp focus and a smooth transition out of focus. I'd like to understand what is happening.

By the way. What is the best depth range for this tool?
I tried only positiv, only negativ values. White in the front, black in the front. However it is hard to tell the differences...

Here is my comp:

Code: Select all

{
	Tools = ordered() {
		Renderer3D1 = Renderer3D {
			CustomData = {
				ToolVersion = 2
			},
			Inputs = {
				Width = Input { Value = 1920, },
				Height = Input { Value = 1080, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
				SceneInput = Input {
					SourceOp = "Merge3D2",
					Source = "Output",
				},
				CameraSelector = Input { Value = FuID { "CAM_SHOT01Shape" }, },
				["RendererSoftware.Channels.Nest"] = Input { Value = 1, },
				["RendererSoftware.Channels.Z"] = Input { Value = 1, },
				["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
			},
			ViewInfo = OperatorInfo { Pos = { 385, 577.5 } },
		},
		Szenenaufbau = GroupOperator {
			NameSet = true,
			Outputs = {
				Output1 = InstanceOutput {
					SourceOp = "Merge3D2",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo {
				Pos = { 165, 577.5 },
				Flags = {
					AllowPan = false,
					GridSnap = true,
					AutoSnap = true,
					RemoveRouters = true
				},
				Size = { 1171, 427.3, 585.5, 22 },
				Direction = "Horizontal",
				PipeStyle = "Direct",
				Scale = 1,
				Offset = { 247.5, -401.8 }
			},
			Tools = ordered() {
				UVMap3D1_1_1 = UVMap {
					CtrlWShown = false,
					Inputs = {
						SceneInput = Input {
							SourceOp = "Torus_001Shape",
							Source = "Output",
						},
						["Size.X"] = Input { Value = 4.86, },
						["Size.Y"] = Input { Value = 1.73, },
						["Size.Z"] = Input { Value = 9.07, },
						["Center.X"] = Input { Value = -7.19566488265991, },
						["Center.Y"] = Input { Value = 0.19100284576416, },
						["Center.Z"] = Input { Value = -0.293267250061035, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 775.5 } },
				},
				Torus_001Shape = SurfaceAlembicMesh {
					CtrlWShown = false,
					Inputs = {
						["Transform3DOp.Translate.X"] = Input { Value = -7.19566488265991, },
						["Transform3DOp.Translate.Y"] = Input { Value = 0.191002607345581, },
						["Transform3DOp.Translate.Z"] = Input { Value = -0.293267339468002, },
						["Transform3DOp.Rotate.X"] = Input { Value = -23.2584541371124, },
						["Transform3DOp.Rotate.Z"] = Input { Value = -18.7864964139118, },
						["Transform3DOp.Scale.X"] = Input { Value = 1.64225787618273, },
						["Transform3DOp.Scale.Y"] = Input { Value = 1.64225755462212, },
						["Transform3DOp.Scale.Z"] = Input { Value = 1.64225739902914, },
						Filename = Input { Value = "E:\\_D_FUSION_RESEARCH\\DOF\\dof_blenderszene.abc", },
						ObjName = Input { Value = "/Torus_001/Torus_001Shape", },
						SamplingRate = Input { Value = 25, },
						TransformToWorld = Input { Value = 1, },
						["ObjectID.ObjectID"] = Input { Value = 4, },
						MaterialInput = Input {
							SourceOp = "MaterialMerge1_2",
							Source = "MaterialOutput",
						},
						["MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0, },
						["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.55, },
						["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 4, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 742.5 } },
				},
				AmbientLight1 = LightAmbient {
					CtrlWShown = false,
					Inputs = {
						Intensity = Input { Value = 0.462, },
					},
					ViewInfo = OperatorInfo { Pos = { 275, 643.5 } },
				},
				MaterialMerge1_2 = MtlMerge3D {
					CtrlWShown = false,
					Inputs = {
						BackgroundMaterial = Input {
							SourceOp = "Blinn1",
							Source = "MaterialOutput",
						},
						ForegroundMaterial = Input {
							SourceOp = "Blinn2_2",
							Source = "MaterialOutput",
						},
						MaterialID = Input { Value = 7, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 709.5 } },
				},
				DirectionalLight1 = LightDirectional {
					CtrlWShown = false,
					Inputs = {
						["Transform3DOp.Rotate.X"] = Input { Value = 178.3, },
						["Transform3DOp.Rotate.Y"] = Input { Value = -88.3, },
						["Transform3DOp.Rotate.Z"] = Input { Value = 50.2, },
						Intensity = Input { Value = 0.359, },
					},
					ViewInfo = OperatorInfo { Pos = { 165, 643.5 } },
				},
				CAM_SHOT01Shape = Camera3D {
					CtrlWShown = false,
					Inputs = {
						["Transform3DOp.Translate.X"] = Input { Value = 16.1879558563232, },
						["Transform3DOp.Translate.Y"] = Input { Value = 4.3875298500061, },
						["Transform3DOp.Translate.Z"] = Input { Value = 14.6528215408325, },
						["Transform3DOp.Rotate.X"] = Input { Value = -9.02611619150499, },
						["Transform3DOp.Rotate.Y"] = Input { Value = 47.8324769035501, },
						["Transform3DOp.Rotate.Z"] = Input { Value = 0.000749049075486224, },
						["Transform3DOp.Scale.X"] = Input { Value = 1.00000002698228, },
						["Transform3DOp.Scale.Y"] = Input { Value = 0.999999931963495, },
						["Transform3DOp.Scale.Z"] = Input { Value = 1.00000007366021, },
						PerspNearClip = Input { Value = 0.100000001490116, },
						PerspFarClip = Input { Value = 100, },
						AovType = Input { Value = 1, },
						AoV = Input { Value = 27.9538196389413, },
						FLength = Input { Value = 50, },
						PlaneOfFocus = Input { Value = 0.05, },
						["Stereo.Mode"] = Input { Value = FuID { "OffAxis" }, },
						FilmBack = Input { Value = 1, },
						FilmGate = Input { Value = FuID { "User" }, },
						ApertureW = Input { Value = 0.979921235812931, },
						ApertureH = Input { Value = 0.734645663283941, },
						ResolutionGateFit = Input { Value = FuID { "Width" }, },
						["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
						["MtlStdInputs.MaterialID"] = Input { Value = 1, },
					},
					ViewInfo = OperatorInfo { Pos = { 165, 511.5 } },
				},
				Merge3D2 = Merge3D {
					CtrlWShown = false,
					Inputs = {
						SceneInput1 = Input {
							SourceOp = "Merge3D1",
							Source = "Output",
						},
						SceneInput2 = Input {
							SourceOp = "DirectionalLight1",
							Source = "Output",
						},
						SceneInput3 = Input {
							SourceOp = "AmbientLight1",
							Source = "Output",
						},
						SceneInput4 = Input {
							SourceOp = "CAM_SHOT01Shape",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 165, 577.5 } },
				},
				Blinn2_2 = MtlBlinn {
					CtrlWShown = false,
					Inputs = {
						["Diffuse.Color.Red"] = Input { Value = 0.307, },
						["Diffuse.Color.Green"] = Input { Value = 0.7, },
						["Diffuse.Color.Blue"] = Input { Value = 0, },
						["Diffuse.Color.Alpha"] = Input { Value = 0, },
						["Specular.Nest"] = Input { Value = 1, },
						["Specular.Intensity"] = Input { Value = 0, },
						["Specular.Exponent"] = Input { Value = 1, },
						MaterialID = Input { Value = 8, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 676.5 } },
				},
				UVMap3D1_1 = UVMap {
					CtrlWShown = false,
					Inputs = {
						SceneInput = Input {
							SourceOp = "IcosphereShape",
							Source = "Output",
						},
						MapMode = Input { Value = FuID { "Spherical" }, },
						["Size.X"] = Input { Value = 1.72021961212158, },
						["Size.Y"] = Input { Value = 1.72021961212158, },
						["Size.Z"] = Input { Value = 1.72021961212158, },
						["Center.X"] = Input { Value = -7.20703649520874, },
						["Center.Y"] = Input { Value = 0.107434630393982, },
						["Center.Z"] = Input { Value = -0.334475159645081, },
					},
					ViewInfo = OperatorInfo { Pos = { 55, 511.5 } },
				},
				Merge3D1 = Merge3D {
					CtrlWShown = false,
					Inputs = {
						SceneInput2 = Input {
							SourceOp = "UVMap3D1_1",
							Source = "Output",
						},
						SceneInput3 = Input {
							SourceOp = "UVMap3D1",
							Source = "Output",
						},
						SceneInput4 = Input {
							SourceOp = "UVMap3D1_1_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 577.5 } },
				},
				IcosphereShape = SurfaceAlembicMesh {
					CtrlWShown = false,
					Inputs = {
						["Transform3DOp.Translate.X"] = Input { Value = -7.20703649520874, },
						["Transform3DOp.Translate.Y"] = Input { Value = 0.107434958219528, },
						["Transform3DOp.Translate.Z"] = Input { Value = -0.33447527885437, },
						Filename = Input { Value = "E:\\_D_FUSION_RESEARCH\\DOF\\dof_blenderszene.abc", },
						ObjName = Input { Value = "/Icosphere/IcosphereShape", },
						SamplingRate = Input { Value = 25, },
						TransformToWorld = Input { Value = 1, },
						["ObjectID.ObjectID"] = Input { Value = 2, },
						MaterialInput = Input {
							SourceOp = "MaterialMerge1",
							Source = "MaterialOutput",
						},
						["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.193, },
						["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.521, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 2, },
					},
					ViewInfo = OperatorInfo { Pos = { 55, 478.5 } },
				},
				Blinn2 = MtlBlinn {
					CtrlWShown = false,
					Inputs = {
						["Diffuse.Color.Red"] = Input { Value = 0.55, },
						["Diffuse.Color.Green"] = Input { Value = 0, },
						["Diffuse.Color.Blue"] = Input { Value = 0.357, },
						["Diffuse.Color.Alpha"] = Input { Value = 0.463, },
						["Specular.Nest"] = Input { Value = 1, },
						["Specular.Intensity"] = Input { Value = 0, },
						["Specular.Exponent"] = Input { Value = 1, },
						MaterialID = Input { Value = 8, },
					},
					ViewInfo = OperatorInfo { Pos = { 55, 412.5 } },
				},
				MaterialMerge1 = MtlMerge3D {
					CtrlWShown = false,
					Inputs = {
						BackgroundMaterial = Input {
							SourceOp = "Blinn1",
							Source = "MaterialOutput",
						},
						ForegroundMaterial = Input {
							SourceOp = "Blinn2",
							Source = "MaterialOutput",
						},
						MaterialID = Input { Value = 7, },
					},
					ViewInfo = OperatorInfo { Pos = { 55, 445.5 } },
				},
				Background2 = Background {
					CtrlWShown = false,
					Inputs = {
						Width = Input { Value = 50, },
						Height = Input { Value = 50, },
						["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
					},
					ViewInfo = OperatorInfo { Pos = { -550, 610.5 } },
				},
				Icosphere_001Shape = SurfaceAlembicMesh {
					CtrlWShown = false,
					Inputs = {
						["Transform3DOp.Translate.X"] = Input { Value = 10.7811889648438, },
						["Transform3DOp.Translate.Y"] = Input { Value = 2.24070477485657, },
						["Transform3DOp.Translate.Z"] = Input { Value = 5.05986976623535, },
						["Transform3DOp.Scale.X"] = Input { Value = 2.87990880012512, },
						["Transform3DOp.Scale.Y"] = Input { Value = 2.87990880012512, },
						["Transform3DOp.Scale.Z"] = Input { Value = 2.87990880012512, },
						Filename = Input { Value = "E:\\_D_FUSION_RESEARCH\\DOF\\dof_blenderszene.abc", },
						ObjName = Input { Value = "/Icosphere_001/Icosphere_001Shape", },
						SamplingRate = Input { Value = 25, },
						TransformToWorld = Input { Value = 1, },
						["ObjectID.ObjectID"] = Input { Value = 3, },
						MaterialInput = Input {
							SourceOp = "MaterialMerge1_1",
							Source = "MaterialOutput",
						},
						["MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0, },
						["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.171, },
						["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.536, },
						["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
						["MtlStdInputs.Specular.Intensity"] = Input { Value = 0, },
						["MtlStdInputs.MaterialID"] = Input { Value = 3, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 544.5 } },
				},
				MaterialMerge1_1 = MtlMerge3D {
					CtrlWShown = false,
					Inputs = {
						BackgroundMaterial = Input {
							SourceOp = "Blinn1",
							Source = "MaterialOutput",
						},
						ForegroundMaterial = Input {
							SourceOp = "Blinn2_1",
							Source = "MaterialOutput",
						},
						MaterialID = Input { Value = 7, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 511.5 } },
				},
				Blinn2_1 = MtlBlinn {
					CtrlWShown = false,
					Inputs = {
						["Diffuse.Color.Red"] = Input { Value = 0.029, },
						["Diffuse.Color.Green"] = Input { Value = 0.186, },
						["Diffuse.Color.Blue"] = Input { Value = 0.764, },
						["Diffuse.Color.Alpha"] = Input { Value = 0.463, },
						["Specular.Nest"] = Input { Value = 1, },
						["Specular.Intensity"] = Input { Value = 0, },
						["Specular.Exponent"] = Input { Value = 1, },
						MaterialID = Input { Value = 8, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 478.5 } },
				},
				UVMap3D1 = UVMap {
					CtrlWShown = false,
					Inputs = {
						SceneInput = Input {
							SourceOp = "Icosphere_001Shape",
							Source = "Output",
						},
						MapMode = Input { Value = FuID { "Spherical" }, },
						["Size.X"] = Input { Value = 4.95407581329346, },
						["Size.Y"] = Input { Value = 4.95407581329346, },
						["Size.Z"] = Input { Value = 4.95407581329346, },
						["Center.X"] = Input { Value = 10.7811908721924, },
						["Center.Y"] = Input { Value = 2.24070596694946, },
						["Center.Z"] = Input { Value = 5.05987405776978, },
					},
					ViewInfo = OperatorInfo { Pos = { -55, 577.5 } },
				},
				Background1 = Background {
					CtrlWShown = false,
					Inputs = {
						Width = Input { Value = 50, },
						Height = Input { Value = 50, },
						["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
						TopLeftRed = Input { Value = 1, },
						TopLeftGreen = Input { Value = 1, },
						TopLeftBlue = Input { Value = 1, },
						EffectMask = Input {
							SourceOp = "Rectangle1",
							Source = "Mask",
						}
					},
					ViewInfo = OperatorInfo { Pos = { -770, 577.5 } },
				},
				BrightnessContrast2 = BrightnessContrast {
					CtrlWShown = false,
					Inputs = {
						Contrast = Input { Value = -0.444, },
						Input = Input {
							SourceOp = "Background1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -660, 577.5 } },
				},
				Texture2D1 = Texture2DOperator {
					CtrlWShown = false,
					Inputs = {
						Input = Input {
							SourceOp = "Merge1",
							Source = "Output",
						},
						UScale = Input { Value = 0.1, },
						VScale = Input { Value = 0.1, },
						WrapMode = Input { Value = FuID { "Wrap" }, },
						MaterialID = Input { Value = 6, },
					},
					ViewInfo = OperatorInfo { Pos = { -440, 577.5 } },
				},
				Merge1 = Merge {
					CtrlWShown = false,
					Inputs = {
						Background = Input {
							SourceOp = "Background2",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "BrightnessContrast2",
							Source = "Output",
						},
						Gain = Input { Value = 0, },
						PerformDepthMerge = Input { Value = 0, },
					},
					ViewInfo = OperatorInfo { Pos = { -550, 577.5 } },
				},
				Blinn1 = MtlBlinn {
					CtrlWShown = false,
					Inputs = {
						["Diffuse.Color.Material"] = Input {
							SourceOp = "Texture2D1",
							Source = "MaterialOutput",
						},
						["Specular.Nest"] = Input { Value = 1, },
						["Specular.Intensity"] = Input { Value = 0, },
						["Specular.Exponent"] = Input { Value = 1, },
						MaterialID = Input { Value = 5, },
					},
					ViewInfo = OperatorInfo { Pos = { -330, 577.5 } },
				},
				Rectangle1 = RectangleMask {
					CtrlWShown = false,
					Inputs = {
						MaskWidth = Input { Value = 1920, },
						MaskHeight = Input { Value = 1080, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Center = Input { Value = { 0.25, 0.75 }, },
						EffectMask = Input {
							SourceOp = "Rectangle1_1",
							Source = "Mask",
						}
					},
					ViewInfo = OperatorInfo { Pos = { -770, 544.5 } },
				},
				Rectangle1_1 = RectangleMask {
					CtrlWShown = false,
					Inputs = {
						MaskWidth = Input { Value = 1920, },
						MaskHeight = Input { Value = 1080, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Center = Input { Value = { 0.7475, 0.255 }, },
					},
					ViewInfo = OperatorInfo { Pos = { -770, 511.5 } },
				}
			},
		},
		DepthDefocus_1 = MacroOperator {
			CustomData = {
				HelpPage = "https://www.steakunderwater.com/VFXPedia/96.0.243.189/indexe0a0.html?title=Settings_and_Macros/DepthDefocus_Description"
			},
			Inputs = ordered() {
				Comments = Input { Value = "Depth Defocus for Fusion 6.3 and above\r\n\r\nIn v07-4:\rDouble Alpha bug fixed\r\n\r\nby Gregory Chalenko\r\nwww.compositing.ru", },
				Input = InstanceInput {
					SourceOp = "ChangeDepth_1",
					Source = "Input",
				},
				DepthMap = InstanceInput {
					SourceOp = "Instance_ChangeDepth_1",
					Source = "Input",
					Name = "Depth Map",
				},
				DepthMapChannel = InstanceInput {
					SourceOp = "Bol_ChannelSelector_1",
					Source = "BlurChannel",
					Name = "Depth Map Channel",
				},
				InvertDepthMap = InstanceInput {
					SourceOp = "Bol_ChannelSelector_1",
					Source = "InvertDepthMap",
				},
				FocalPoint = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint_1",
					Source = "FocalPoint",
					Name = "Focal Point",
					ControlGroup = 4,
					Default = 0.5,
				},
				DefocusStrength = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "DefocusStrength",
					Default = 5,
				},
				ForegroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "ForegroundDefocusMultiplier",
					Default = 1,
				},
				BackgroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_BackgroundMap_1",
					Source = "GainRed",
					Name = "Background Defocus Multiplier",
					Default = 1,
				},
				PerspectiveCorrection = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint_1",
					Source = "Gamma",
					Name = "Perspective Correction (deceleration of strength with distance)",
					MinScale = 1,
					Default = 2,
				},
				SharpZone = InstanceInput {
					SourceOp = "BC_SharpZone_1",
					Source = "SharpZone",
					Default = 0,
				},
				Anamorphic = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "StartEndRenderScripts",
					Name = "Anamorphic",
					Default = 0,
				},
				XDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "XDefocusMultiplier",
					Default = 1,
				},
				YDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "YDefocusMultiplier",
					Default = 1,
				},
				ChromaticAberrations = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "ChromaticAberrations",
				},
				EnableCromaticAberrations = InstanceInput {
					SourceOp = "Bol_ChromaticAberrations_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Chromatic Aberrations",
				},
				AxialChromaticAberrationsSlider = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "AxialChromaticAberrationsSlider",
					Default = 1.1,
				},
				RedDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "RedDefocusMultiplier",
					Default = 1,
				},
				GreenDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurG_1",
					Source = "GreenDefocusMultiplier",
					Default = 1,
				},
				BlueDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurB_1",
					Source = "BlueDefocusMultiplier",
					Default = 1,
				},
				BokehProfile = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "BokehProfile",
				},
				EnableBokehProfiling = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Bokeh Profiling",
					Default = 0,
				},
				EditRed = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditRed",
				},
				EditGreen = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditGreen",
				},
				EditBlue = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditBlue",
				},
				BokehProfileRed = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Red",
					ControlGroup = 1,
				},
				BokehProfileGreen = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Green",
					ControlGroup = 1,
				},
				BokehProfileBlue = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Blue",
					ControlGroup = 1,
				},
				BokehProfileStrength = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "BokehProfileStrength",
					Default = 1,
				},
				BlurringMethod = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "Method",
					Name = "Blurring Method",
					Default = 4,
				},
				Quality = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "Quality",
					Default = 4,
				},
				EnableEdgeArtefactsReduction = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Edge Artefacts Reduction",
					Default = 0,
				},
				ReduceEdgeArtefacts = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts_1",
					Source = "XBlurSize",
					Name = "Reduce Edge Artefacts",
					Default = 1,
				},
				PreGammaPostGamma = InstanceInput {
					SourceOp = "BC_Regamma_1",
					Source = "PreGammaPostGamma",
				},
				ImageGamma = InstanceInput {
					SourceOp = "BC_Regamma_1",
					Source = "Gamma",
					Name = "Image Gamma",
					Default = 2.2,
				},
				Depth = InstanceInput {
					SourceOp = "ChangeDepth_1",
					Source = "Depth",
					Name = "Set Depth",
				},
				OutputImage = InstanceInput {
					SourceOp = "DepthDefocusMacro_1",
					Source = "OutputImage",
				},
				ConnectZBufferToTheOutput = InstanceInput {
					SourceOp = "Bol_ZConnection_1",
					Source = "ConnectZBuffer",
					Name = "Connect Z Buffer to the Output",
				},
				Blend = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "BlendClone",
					Name = "Blend",
					Page = "Common Controls",
					Default = 1,
				},
				ProcessWhenBlendIs00 = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "ProcessWhenBlendIs00",
					Default = 0,
				},
				ApplyMaskInverted = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "ApplyMaskInverted",
					Default = 0,
				},
				MultiplyByMask = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MultiplyByMask",
					Default = 0,
				},
				FitMask = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "FitMask",
				},
				MaskChannel = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskChannel",
					Default = 3,
				},
				MaskHigh = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskHigh",
					ControlGroup = 12,
					Default = 1,
				},
				MaskLow = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskLow",
					ControlGroup = 12,
					Default = 0,
				},
				EffectMask = InstanceInput {
					SourceOp = "PipeRouter4_1",
					Source = "Input",
				}
			},
			Outputs = {
				Output = InstanceOutput {
					SourceOp = "DepthDefocusMacro_1",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo { Pos = { 660, 577.5 } },
			Tools = ordered() {
				ChangeDepth_1 = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Depth = Input { Value = 4, },
						Input = Input {
							SourceOp = "Renderer3D1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 10.6 } },
				},
				Bol_ChannelSelector_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						ProcessAlpha = Input { Value = 0, },
						Operation = Input { Expression = "iif(InvertDepthMap==1,10,0)", },
						ToRed = Input { Expression = "iif(BlurChannel<4,BlurChannel,18)", },
						Background = Input {
							SourceOp = "Instance_ChangeDepth_1",
							Source = "Output",
						},
						BlurChannel = Input { Value = 0, },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 76.6 } },
					UserControls = ordered() {
						BlurChannel = {
							{ MBTNC_AddButton = "Red" },
							{ MBTNC_AddButton = "Green" },
							{ MBTNC_AddButton = "Blue" },
							{ MBTNC_AddButton = "Alpha" },
							{ MBTNC_AddButton = "Z" },
							INPID_InputControl = "MultiButtonControl",
							LINKID_DataType = "Number",
							MBTNC_StretchToFit = true,
							IC_ControlPage = 0,
							INPS_Name = "Blur Channel",
							INP_Default = 4,
						},
						InvertDepthMap = {
							LINKID_DataType = "Number",
							INP_Default = 0,
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							LINKS_Name = "Invert Depth Map",
						}
					}
				},
				BC_Degamma_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "BC_Regamma_1",
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur_1.Blend==0,0,BC_Regamma_1.PreGammaPostGamma)" },
						Direction = Input { Value = 1, },
						Input = Input {
							SourceOp = "ChangeDepth_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 43.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				VariBlur_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "BlendClone", },
						Method = Input { Value = 2, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 0, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INPID_InputControl = "SliderControl",
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INP_Default = 1,
						},
						DefocusStrength = {
							INP_Default = 5,
							INP_MaxScale = 10,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 5,
							LINKS_Name = "Defocus Strength",
						},
						XDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "X Defocus Multiplier",
						},
						YDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Y Defocus Multiplier",
						},
						RedDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Red Defocus Multiplier",
						}
					}
				},
				VariBlurG_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00)", },
						ProcessRed = Input { Value = 0, },
						ProcessBlue = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur_1.Method",
						},
						Quality = Input { Expression = "VariBlur_1.Quality", },
						BlurChannel = Input { Value = 1, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*GreenDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*GreenDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Green Defocus Multiplier",
						}
					}
				},
				VariBlurB_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "iif(BlueDefocusMultiplier==VariBlur_1.RedDefocusMultiplier,0,math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00))",
						},
						ProcessRed = Input { Value = 0, },
						ProcessGreen = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur_1.Method",
						},
						Quality = Input { Expression = "VariBlur_1.Quality", },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*BlueDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*BlueDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "VariBlurG_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Blue Defocus Multiplier",
						}
					}
				},
				BC_Regamma_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur_1.Blend==0,0,BC_Regamma_1.PreGammaPostGamma)", },
						Alpha = Input { Value = 1, },
						Gamma = Input { Value = 2.2, },
						Input = Input {
							SourceOp = "Bol_AddBokehProfile_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						PreGammaPostGamma = {
							LINKID_DataType = "Number",
							INP_Default = 1,
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							LINKS_Name = "Pre-Gamma / Post-Gamma",
						}
					}
				},
				Bol_ZConnection_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "ConnectZBuffer", },
						ToRed = Input { Value = 4, },
						ToGreen = Input { Value = 4, },
						ToBlue = Input { Value = 4, },
						ToAlpha = Input { Value = 4, },
						EnableExtraChannels = Input { Value = 1, },
						ToZBuffer = Input { Value = 0, },
						Background = Input {
							SourceOp = "BC_Regamma_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_ChannelSelector_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						ConnectZBuffer = {
							INPID_InputControl = "CheckboxControl",
							LINKID_DataType = "Number",
							IC_ControlPage = 2,
							INPS_Name = "Connect Z Buffer",
							INP_Default = 1,
						}
					}
				},
				DepthDefocusMacro_1 = Dissolve {
					Transitions = {
						[0] = "DFTDissolve"
					},
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Mix = Input {
							Value = 0,
							Expression = "iif(OutputImage==3,0,1)",
						},
						Background = Input {
							SourceOp = "Bol_ZConnection_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_SharpZoneConnection_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 274.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						OutputImage = {
							{ MBTNCD_ButtonWidth = 0.333, MBTNC_AddButton = "Depth Channel" },
							{ MBTNC_AddButton = "Defocus Strength" },
							{ MBTNC_AddButton = "Sharp Zone" },
							{ MBTNCD_ButtonWidth = 1, MBTNC_AddButton = "Final Result" },
							INP_Default = 3,
							INPID_InputControl = "MultiButtonControl",
							MBTNC_StretchToFit = true,
							IC_ControlPage = 0,
							LINKID_DataType = "Number",
							LINKS_Name = "Output Image",
						}
					}
				},
				BOL_Maximum_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						Operation = Input { Value = 8, },
						Background = Input {
							SourceOp = "Clr_BackgroundMap_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Clr_ForegroundMap_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 175.6 } },
				},
				BC_SharpZone_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						ApplyMaskInverted = Input { Value = 1, },
						Brightness = Input {
							Value = -0.15,
							Expression = "-SharpZone",
						},
						ClipBlack = Input { Value = 1, },
						Input = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts_1",
							Source = "Output",
						},
						SharpZone = Input { Value = 0.15, },
						EffectMask = Input {
							SourceOp = "Bitmap2_1",
							Source = "Mask",
						}
					},
					ViewInfo = OperatorInfo { Pos = { -165, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						SharpZone = {
							INP_Default = 0,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 5,
							LINKS_Name = "Sharp Zone",
						}
					}
				},
				Bitmap1_1 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Invert = Input { Value = 1, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.2,
							Expression = "Low+SharpZoneDecay",
						},
						SharpZoneDecay = Input { Value = 0.2, },
					},
					ViewInfo = OperatorInfo { Pos = { -110, 274.6 } },
					UserControls = ordered() {
						SharpZoneDecay = {
							LINKID_DataType = "Number",
							LINKS_Name = "Sharp Zone Decay",
							IC_ControlPage = 0,
							INPID_InputControl = "SliderControl",
							INP_Default = 0,
						}
					}
				},
				BC_CurvatureFocalPoint_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						CromaticAberrations = Input { Value = 1, },
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						Gamma = Input { Value = 2, },
						Brightness = Input {
							Value = -5.18561712817289,
							Expression = "iif(Bol_ChannelSelector_1.InvertDepthMap==1, (1-FocalPoint)^(1/Gamma)*-1, -FocalPoint^(1/Gamma))",
						},
						Input = Input {
							SourceOp = "Bol_ChannelSelector_1",
							Source = "Output",
						},
						FocalPoint = Input { Value = 26.890625, },
					},
					ViewInfo = OperatorInfo { Pos = { -275, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						FocalPoint = {
							IC_ControlGroup = 1,
							LINKID_DataType = "Number",
							IC_ControlID = 12,
							INPID_InputControl = "ColorControl",
							CLRC_ColorSpace = 0,
							IC_ControlPage = 0,
							INPS_Name = "Focal Point",
							INP_Default = 0.5,
						}
					}
				},
				Clr_BackgroundMap_1 = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations_1.ProcessWhenBlendIs00==1,GainRed*Clr_ForegroundMap_1.AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -385, 175.6 } },
				},
				Clr_ForegroundMap_1 = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						GainRed = Input {
							Value = -1,
							Expression = "-ForegroundDefocusMultiplier",
						},
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations_1.ProcessWhenBlendIs00==1,GainRed/AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 142.6 } },
					UserControls = ordered() {
						ForegroundDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Foreground Defocus Multiplier",
						},
						AxialChromaticAberrationsSlider = {
							LINKS_Name = "Axial Chromatic Aberrations",
							INP_MaxScale = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							INP_Default = 1.1,
						},
						ChromaticAberrations = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 5,
							IC_ControlPage = 0,
							LINKS_Name = "Chromatic Aberrations",
							INP_Default = 0,
						}
					}
				},
				Bitmap2_1 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Level = Input { Value = 0.5, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts_1",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.15,
							Expression = "-BC_SharpZone_1.Brightness",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -220, 241.6 } },
				},
				VBl_ReduceEdgeArtefacts_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*math.min(DepthDefocusMacro_1.OutputImage,1)",
						},
						Method = Input { Value = 2, },
						Input = Input {
							SourceOp = "BOL_Maximum_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BOL_Maximum_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 208.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.505882352941176, B = 0.337254901960784 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_SharpZoneConnection_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						ToRed = Input {
							Value = 3,
							Expression = "iif(DepthDefocusMacro_1.OutputImage==2,3,5)",
						},
						ToGreen = Input {
							Value = 3,
							Expression = "ToRed",
						},
						ToBlue = Input {
							Value = 3,
							Expression = "ToRed",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bitmap1_1",
							Source = "Mask",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_ChangeDepth_1 = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "ChangeDepth_1",
					Inputs = {
						Input = Input {
							SourceOp = "ChannelBooleans1_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 43.6 } },
				},
				PipeRouter4_1 = PipeRouter {
					CtrlWShown = false,
					ViewInfo = PipeRouterInfo { Pos = { 220, 274.6 } },
				},
				Bol_ChromaticAberrations_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00",
						},
						ProcessRed = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						ToRed = Input { Value = 4, },
						ToBlue = Input {
							Value = 4,
							Expression = "iif(VariBlurB_1.BlueDefocusMultiplier==1,4,2)",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "VariBlur_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "VariBlurB_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 110, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				ColorCurves_1 = ColorCurves {
					PickColor = true,
					CtrlWShown = false,
					Inputs = {
						EditAlpha = Input { Value = 0, },
						Red = Input {
							SourceOp = "ColorCurves_1Red",
							Source = "Value",
						},
						Green = Input {
							SourceOp = "ColorCurves_1Green",
							Source = "Value",
						},
						Blue = Input {
							SourceOp = "ColorCurves_1Blue",
							Source = "Value",
						},
						Alpha = Input {
							SourceOp = "ColorCurves_1Alpha",
							Source = "Value",
						},
						Input = Input {
							SourceOp = "Bol_EdgeSubtract_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 208.6 } },
					Tools = {
						ColorCurves_1Blue = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 68, Green = 68, Blue = 255 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Alpha = 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 = 204, Green = 204, Blue = 204 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Red = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 255, Green = 52, Blue = 52 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Green = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 0, Green = 255, Blue = 0 },
							CtrlWShown = false,
							NameSet = true,
						}
					},
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_EdgeSubtract_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Operation = Input { Value = 2, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_Bol_ChromaticAberrations_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 175.6 } },
				},
				Instance_Bol_ChromaticAberrations_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "Bol_ChromaticAberrations_1",
					Inputs = {
						Blend = Input { Expression = "ProcessWhenBlendIs00" },
						ToBlue = Input { Expression = "iif(VariBlurB_1.BlueDefocusMultiplier==1,4,2)" },
						Background = Input {
							SourceOp = "Instance_VariBlur_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_VariBlurB_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input { },
						Matte = Input { }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_VariBlur_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlur_1",
					Inputs = {
						Blend = Input { Expression = "BlendClone" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						XBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier*1"
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier*1"
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 275, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INPID_InputControl = "SliderControl",
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INP_Default = 1,
						},
						DefocusStrength = {
							INP_Default = 5,
							INP_MaxScale = 10,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 5,
							LINKS_Name = "Defocus Strength",
						},
						XDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "X Defocus Multiplier",
						},
						YDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Y Defocus Multiplier",
						},
						RedDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Red Defocus Multiplier",
						}
					}
				},
				Instance_VariBlurG_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurG_1",
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00)" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						Quality = Input { Expression = "VariBlur_1.Quality" },
						XBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*GreenDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*GreenDefocusMultiplier" },
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Green Defocus Multiplier",
						}
					}
				},
				Instance_VariBlurB_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurB_1",
					Inputs = {
						Blend = Input { Expression = "iif(BlueDefocusMultiplier==VariBlur_1.RedDefocusMultiplier,0,math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00))" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						Quality = Input { Expression = "VariBlur_1.Quality" },
						XBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*BlueDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*BlueDefocusMultiplier" },
						Input = Input {
							SourceOp = "Instance_VariBlurG_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							INP_Default = 1,
							INP_MaxScale = 3,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							ICD_Center = 1,
							LINKS_Name = "Blue Defocus Multiplier",
						}
					}
				},
				Bol_AddBokehProfile_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*BokehProfileStrength",
						},
						Operation = Input { Value = 1, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "ColorCurves_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 175.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BokehProfileStrength = {
							LINKID_DataType = "Number",
							LINKS_Name = "Bokeh Profile Strength",
							INPID_InputControl = "SliderControl",
							INPS_Name = "BokehProfileStrength",
							INP_Default = 1,
						},
						BokehProfile = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 8,
							IC_ControlPage = 0,
							LINKS_Name = "Bokeh Profile",
							INP_Default = 0,
						}
					}
				}
			},
			Colors = {
				TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
				TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
			}
		},
		ChannelBooleans1_1 = ChannelBoolean {
			Inputs = {
				ToRed = Input { Value = 18, },
				ToGreen = Input { Value = 18, },
				ToBlue = Input { Value = 18, },
				ToAlpha = Input { Value = 4, },
				EnableExtraChannels = Input { Value = 1, },
				ToZBuffer = Input { Value = 18, },
				Background = Input {
					SourceOp = "CustomTool2",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 660, 544.5 } },
		},
		CustomTool2 = Custom {
			Inputs = {
				LUTIn1 = Input {
					SourceOp = "CustomTool2LUTIn1",
					Source = "Value",
				},
				LUTIn2 = Input {
					SourceOp = "CustomTool2LUTIn2",
					Source = "Value",
				},
				LUTIn3 = Input {
					SourceOp = "CustomTool2LUTIn3",
					Source = "Value",
				},
				LUTIn4 = Input {
					SourceOp = "CustomTool2LUTIn4",
					Source = "Value",
				},
				AuxChannelNest = Input { Value = 1, },
				ZExpression = Input { Value = "if(-z1>40,40,-z1);", },
				Image1 = Input {
					SourceOp = "Renderer3D1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 660, 511.5 } },
		},
		CustomTool2LUTIn1 = 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 = 204, Green = 0, Blue = 0 },
		},
		CustomTool2LUTIn2 = 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 = 204, Blue = 0 },
		},
		CustomTool2LUTIn3 = 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 = 0, Blue = 204 },
		},
		CustomTool2LUTIn4 = 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 = 204, Green = 204, Blue = 204 },
		},
		ScaleZ_1_1 = MacroOperator {
			CtrlWZoom = false,
			Inputs = ordered() {
				MainInput1 = InstanceInput {
					SourceOp = "CustomTool1_3_1",
					Source = "Image1",
				},
				Input1 = InstanceInput {
					SourceOp = "CustomTool1_3_1",
					Source = "NumberIn1",
					MaxScale = 5,
				},
				Input2 = InstanceInput {
					SourceOp = "CustomTool1_3_1",
					Source = "NumberIn2",
					MinScale = -10,
					MaxScale = 10,
				}
			},
			Outputs = {
				MainOutput1 = InstanceOutput {
					SourceOp = "CustomTool1_3_1",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo { Pos = { 440, 676.5 } },
			Tools = ordered() {
				CustomTool1_3_1 = Custom {
					CtrlWZoom = false,
					CtrlWShown = false,
					Inputs = {
						NumberIn1 = Input { Value = 1, },
						NumberIn2 = Input { Value = 36.85, },
						LUTIn1 = Input {
							SourceOp = "CustomTool1_3LUTIn1_1",
							Source = "Value",
						},
						LUTIn2 = Input {
							SourceOp = "CustomTool1_3LUTIn2_1",
							Source = "Value",
						},
						LUTIn3 = Input {
							SourceOp = "CustomTool1_3LUTIn3_1",
							Source = "Value",
						},
						LUTIn4 = Input {
							SourceOp = "CustomTool1_3LUTIn4_1",
							Source = "Value",
						},
						AuxChannelNest = Input { Value = 1, },
						ZExpression = Input { Value = "z1*n1+n2", },
						NameforNumber1 = Input { Value = "Scale", },
						NameforNumber2 = Input { Value = "Offset", },
						ShowNumber3 = Input { Value = 0, },
						ShowNumber4 = Input { Value = 0, },
						ShowNumber5 = Input { Value = 0, },
						ShowNumber6 = Input { Value = 0, },
						ShowNumber7 = Input { Value = 0, },
						ShowNumber8 = Input { Value = 0, },
						ShowPoint1 = Input { Value = 0, },
						ShowPoint2 = Input { Value = 0, },
						ShowPoint3 = Input { Value = 0, },
						ShowPoint4 = Input { Value = 0, },
						Image1 = Input {
							SourceOp = "Renderer3D1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 0, 10.15 } },
				}
			},
		},
		CustomTool1_3LUTIn1_1 = 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 = 0, Blue = 0 },
		},
		CustomTool1_3LUTIn2_1 = 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 = 0, Blue = 0 },
		},
		CustomTool1_3LUTIn3_1 = 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 = 0, Blue = 0 },
		},
		CustomTool1_3LUTIn4_1 = 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 = 0, Blue = 0 },
		},
		FLDepthOfField2 = ofx.com.frischluft.openFX.DepthOfField {
			Inputs = {
				Source = Input {
					SourceOp = "Renderer3D1",
					Source = "Output",
				},
				Depth = Input {
					SourceOp = "BrightnessContrast1_1",
					Source = "Output",
				},
				show = Input { Value = 0, },
				radius = Input { Value = 100, },
				["focal distance"] = Input { Value = 75.9, },
				["focal point"] = Input { Value = { 0.18125, 0.5166666666667 }, },
				["highlight intensity"] = Input { Value = 0, },
				["gamma correction"] = Input { Value = 1, },
				["-> Depth Buffer..."] = Input { Value = 1, },
				["depth invert"] = Input { Value = 0, },
				["depth curve"] = Input { Value = 1, },
				["black point"] = Input { Value = 0, },
				["white point"] = Input { Value = 2.70281982421875, },
				["auto range"] = Input { Value = 0, },
				["-> Iris..."] = Input { Value = 0, },
				["iris rounded"] = Input { Value = 1, },
				["iris facets"] = Input { Value = 3, },
				["iris angle"] = Input { Value = 0, },
				["iris border thickness"] = Input { Value = 0.3, },
				["iris border brightness"] = Input { Value = 0, },
				["iris aspect"] = Input { Value = 0, },
				["-> Highlight Selection..."] = Input { Value = 0, },
				["lightness start"] = Input { Value = 0.8, },
				["lightness end"] = Input { Value = 1, },
				["lightness soften"] = Input { Value = 0, },
				["-> Outside Image..."] = Input { Value = 0, },
				["outside horizontal"] = Input { Value = 0, },
				["outside vertical"] = Input { Value = 0, },
				["outside colorRed"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorGreen"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorBlue"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorAlpha"] = Input {
					Value = 0,
					Disabled = true,
				},
			},
			ViewInfo = OperatorInfo { Pos = { 770, 742.5 } },
		},
		ChannelBooleans2 = ChannelBoolean {
			Inputs = {
				ToRed = Input { Value = 18, },
				ToGreen = Input { Value = 18, },
				ToBlue = Input { Value = 18, },
				ToZBuffer = Input { Value = 18, },
				Background = Input {
					SourceOp = "CustomTool1_3_1",
					Source = "Output",
				},
				Foreground = Input {
					SourceOp = "CustomTool1_3_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 440, 742.5 } },
		},
		BrightnessContrast1_1 = BrightnessContrast {
			Inputs = {
				Gamma = Input { Value = 1.274, },
				Contrast = Input { Value = -0.778, },
				Brightness = Input { Value = -0.88, },
				Input = Input {
					SourceOp = "ChannelBooleans2",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 605, 742.5 } },
		}
	}
}
thank you for help,
steakkon
You do not have the required permissions to view the files attached to this post.

User avatar
ShadowMaker SdR
Fusionista
Posts: 709
Joined: Sun Sep 21, 2014 6:17 am
Answers: 4
Been thanked: 2 times

Re: [Update] Depth Defocus 7.5

#5

Post by ShadowMaker SdR » Fri Aug 17, 2018 2:35 am

I am no expert on this, but the main difference that I see with the Cinema 4D render is that that one comes with an actual background. Just for fun, why don't you try it with a big black background in your render and see if that makes a difference.

User avatar
steakkon
Posts: 10
Joined: Wed May 30, 2018 5:23 am
Location: Berlin
Contact:

Re: [Update] Depth Defocus 7.5

#6

Post by steakkon » Mon Aug 20, 2018 1:30 am

Hi ShadowMaker,

that's what I tried too. No change at all. But thank you for the idea.

Correction:
It indeed changes the image. However not as expected.
fusion_Scene_DepthDefocus_mitBlack.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 3930
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 12
Location: Vancouver, Canada
Been thanked: 12 times
Contact:

Re: [Update] Depth Defocus 7.5

#7

Post by SecondMan » Mon Aug 20, 2018 7:29 am

steakkon wrote:
Fri Aug 17, 2018 2:31 am
Here is an EXR-Still out of V-Ray for Cinema4D where the DepthFocus works pretty nice.

I was actually wondering if you could share the EXR itself somewhere, with the comp setup?

User avatar
steakkon
Posts: 10
Joined: Wed May 30, 2018 5:23 am
Location: Berlin
Contact:

Re: [Update] Depth Defocus 7.5

#8

Post by steakkon » Tue Aug 21, 2018 7:20 am

Hi,

I can't publish the whole exr above however the same issue can be discussed with the following frame. It is a Blender EXR but the edge problem is the same.
Fotokamera_resized.exr

Code: Select all

{
	Tools = ordered() {
		Loader1 = Loader {
			Clips = {
				Clip {
					ID = "Clip1",
					Filename = "Comp:\\Fotokamera_resized.exr",
					FormatID = "OpenEXRFormat",
					StartFrame = -1,
					LengthSetManually = true,
					TrimIn = 0,
					TrimOut = 0,
					ExtendFirst = 0,
					ExtendLast = 0,
					Loop = 0,
					AspectMode = 0,
					Depth = 0,
					TimeCode = 0,
					GlobalStart = 0,
					GlobalEnd = 0
				}
			},
			CtrlWZoom = false,
			Inputs = {
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
				["Clip1.OpenEXRFormat.Channels"] = Input { Value = 1, },
				["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "Combined.R" }, },
				["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "Combined.G" }, },
				["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "Combined.B" }, },
				["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "Combined.A" }, },
				["Clip1.OpenEXRFormat.ZName"] = Input { Value = FuID { "Depth.V" }, },
			},
			ViewInfo = OperatorInfo { Pos = { 275, 346.5 } },
		},
		DepthChannel = Note {
			NameSet = true,
			ViewInfo = StickyNoteInfo {
				Pos = { -110, 412.5 },
				Flags = {
					Expanded = true
				},
				Size = { 485, 151.3 }
			},
		},
		Loader1_1 = Loader {
			Clips = {
				Clip {
					ID = "Clip1",
					Filename = "Comp:\\Fotokamera_resized.exr",
					FormatID = "OpenEXRFormat",
					StartFrame = -1,
					LengthSetManually = true,
					TrimIn = 0,
					TrimOut = 0,
					ExtendFirst = 0,
					ExtendLast = 0,
					Loop = 0,
					AspectMode = 0,
					Depth = 0,
					TimeCode = 0,
					GlobalStart = 0,
					GlobalEnd = 0
				}
			},
			Inputs = {
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
				["Clip1.OpenEXRFormat.Channels"] = Input { Value = 1, },
				["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "Combined.R" }, },
				["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "Combined.G" }, },
				["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "Combined.B" }, },
				["Clip1.OpenEXRFormat.AlphaEnable"] = Input { Value = 0, },
				["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "Combined.A" }, },
				["Clip1.OpenEXRFormat.ZName"] = Input { Value = FuID { "Depth.V" }, },
			},
			ViewInfo = OperatorInfo { Pos = { -55, 478.5 } },
		},
		ChannelBooleans1 = ChannelBoolean {
			Inputs = {
				ToRed = Input { Value = 18, },
				ToGreen = Input { Value = 18, },
				ToBlue = Input { Value = 18, },
				ToAlpha = Input { Value = 4, },
				Background = Input {
					SourceOp = "CustomTool1_1",
					Source = "Output",
				},
				Foreground = Input {
					SourceOp = "CustomTool1_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 275, 478.5 } },
		},
		ScaleZ = MacroOperator {
			Inputs = ordered() {
				MainInput1 = InstanceInput {
					SourceOp = "CustomTool1_1",
					Source = "Image1",
				},
				Input1 = InstanceInput {
					SourceOp = "CustomTool1_1",
					Source = "NumberIn1",
					MaxScale = 5,
				},
				Input2 = InstanceInput {
					SourceOp = "CustomTool1_1",
					Source = "NumberIn2",
					MinScale = -10,
					MaxScale = 10,
				}
			},
			Outputs = {
				MainOutput1 = InstanceOutput {
					SourceOp = "CustomTool1_1",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo { Pos = { 165, 478.5 } },
			Tools = ordered() {
				CustomTool1_1 = Custom {
					CtrlWZoom = false,
					CtrlWShown = false,
					Inputs = {
						NumberIn1 = Input { Value = -10, },
						LUTIn1 = Input {
							SourceOp = "CustomTool1_1LUTIn1",
							Source = "Value",
						},
						LUTIn2 = Input {
							SourceOp = "CustomTool1_1LUTIn2",
							Source = "Value",
						},
						LUTIn3 = Input {
							SourceOp = "CustomTool1_1LUTIn3",
							Source = "Value",
						},
						LUTIn4 = Input {
							SourceOp = "CustomTool1_1LUTIn4",
							Source = "Value",
						},
						AuxChannelNest = Input { Value = 1, },
						ZExpression = Input { Value = "z1*n1+n2", },
						NameforNumber1 = Input { Value = "Scale", },
						NameforNumber2 = Input { Value = "Offset", },
						ShowNumber3 = Input { Value = 0, },
						ShowNumber4 = Input { Value = 0, },
						ShowNumber5 = Input { Value = 0, },
						ShowNumber6 = Input { Value = 0, },
						ShowNumber7 = Input { Value = 0, },
						ShowNumber8 = Input { Value = 0, },
						ShowPoint1 = Input { Value = 0, },
						ShowPoint2 = Input { Value = 0, },
						ShowPoint3 = Input { Value = 0, },
						ShowPoint4 = Input { Value = 0, },
						Image1 = Input {
							SourceOp = "CustomTool1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 0, 10.15 } },
				}
			},
		},
		CustomTool1_1LUTIn1 = 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 = 0, Blue = 0 },
		},
		CustomTool1_1LUTIn2 = 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 = 0, Blue = 0 },
		},
		CustomTool1_1LUTIn3 = 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 = 0, Blue = 0 },
		},
		CustomTool1_1LUTIn4 = 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 = 0, Blue = 0 },
		},
		CustomTool1 = Custom {
			Inputs = {
				LUTIn1 = Input {
					SourceOp = "CustomTool1LUTIn1",
					Source = "Value",
				},
				LUTIn2 = Input {
					SourceOp = "CustomTool1LUTIn2",
					Source = "Value",
				},
				LUTIn3 = Input {
					SourceOp = "CustomTool1LUTIn3",
					Source = "Value",
				},
				LUTIn4 = Input {
					SourceOp = "CustomTool1LUTIn4",
					Source = "Value",
				},
				AuxChannelNest = Input { Value = 1, },
				ZExpression = Input { Value = "if(z1>20,20,z1)", },
				Image1 = Input {
					SourceOp = "Loader1_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 55, 478.5 } },
		},
		CustomTool1LUTIn1 = 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 = 204, Green = 0, Blue = 0 },
			NameSet = true,
		},
		CustomTool1LUTIn2 = 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 = 204, Blue = 0 },
			NameSet = true,
		},
		CustomTool1LUTIn3 = 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 = 0, Blue = 204 },
			NameSet = true,
		},
		CustomTool1LUTIn4 = 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 = 204, Green = 204, Blue = 204 },
			NameSet = true,
		},
		DepthDefocus_1 = MacroOperator {
			CustomData = {
				HelpPage = "https://www.steakunderwater.com/VFXPedia/96.0.243.189/indexe0a0.html?title=Settings_and_Macros/DepthDefocus_Description",
			},
			Inputs = ordered() {
				Comments = Input { Value = "Depth Defocus for Fusion 6.3 and above\r\n\r\nIn v07-4:\rDouble Alpha bug fixed\r\n\r\nby Gregory Chalenko\r\nwww.compositing.ru", },
				Input = InstanceInput {
					SourceOp = "ChangeDepth_1",
					Source = "Input",
				},
				DepthMap = InstanceInput {
					SourceOp = "Instance_ChangeDepth_1",
					Source = "Input",
					Name = "Depth Map",
				},
				DepthMapChannel = InstanceInput {
					SourceOp = "Bol_ChannelSelector_1",
					Source = "BlurChannel",
					Name = "Depth Map Channel",
				},
				InvertDepthMap = InstanceInput {
					SourceOp = "Bol_ChannelSelector_1",
					Source = "InvertDepthMap",
				},
				FocalPoint = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint_1",
					Source = "FocalPoint",
					Name = "Focal Point",
					ControlGroup = 4,
					Default = 0.5,
				},
				DefocusStrength = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "DefocusStrength",
					Default = 5,
				},
				ForegroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "ForegroundDefocusMultiplier",
					Default = 1,
				},
				BackgroundDefocusMultiplier = InstanceInput {
					SourceOp = "Clr_BackgroundMap_1",
					Source = "GainRed",
					Name = "Background Defocus Multiplier",
					Default = 1,
				},
				PerspectiveCorrection = InstanceInput {
					SourceOp = "BC_CurvatureFocalPoint_1",
					Source = "Gamma",
					Name = "Perspective Correction (deceleration of strength with distance)",
					MinScale = 1,
					Default = 2,
				},
				SharpZone = InstanceInput {
					SourceOp = "BC_SharpZone_1",
					Source = "SharpZone",
					Default = 0,
				},
				Anamorphic = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "StartEndRenderScripts",
					Name = "Anamorphic",
					Default = 0,
				},
				XDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "XDefocusMultiplier",
					Default = 1,
				},
				YDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "YDefocusMultiplier",
					Default = 1,
				},
				ChromaticAberrations = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "ChromaticAberrations",
				},
				EnableCromaticAberrations = InstanceInput {
					SourceOp = "Bol_ChromaticAberrations_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Chromatic Aberrations",
				},
				AxialChromaticAberrationsSlider = InstanceInput {
					SourceOp = "Clr_ForegroundMap_1",
					Source = "AxialChromaticAberrationsSlider",
					Default = 1.1,
				},
				RedDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "RedDefocusMultiplier",
					Default = 1,
				},
				GreenDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurG_1",
					Source = "GreenDefocusMultiplier",
					Default = 1,
				},
				BlueDefocusMultiplier = InstanceInput {
					SourceOp = "VariBlurB_1",
					Source = "BlueDefocusMultiplier",
					Default = 1,
				},
				BokehProfile = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "BokehProfile",
				},
				EnableBokehProfiling = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Bokeh Profiling",
					Default = 0,
				},
				EditRed = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditRed",
				},
				EditGreen = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditGreen",
				},
				EditBlue = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "EditBlue",
				},
				BokehProfileRed = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Red",
					ControlGroup = 1,
				},
				BokehProfileGreen = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Green",
					ControlGroup = 1,
				},
				BokehProfileBlue = InstanceInput {
					SourceOp = "ColorCurves_1",
					Source = "Blue",
					ControlGroup = 1,
				},
				BokehProfileStrength = InstanceInput {
					SourceOp = "Bol_AddBokehProfile_1",
					Source = "BokehProfileStrength",
					Default = 1,
				},
				BlurringMethod = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "Method",
					Name = "Blurring Method",
					Default = 4,
				},
				Quality = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "Quality",
					Default = 4,
				},
				EnableEdgeArtefactsReduction = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts_1",
					Source = "ProcessWhenBlendIs00",
					Name = "Enable Edge Artefacts Reduction",
					Default = 0,
				},
				ReduceEdgeArtefacts = InstanceInput {
					SourceOp = "VBl_ReduceEdgeArtefacts_1",
					Source = "XBlurSize",
					Name = "Reduce Edge Artefacts",
					Default = 1,
				},
				PreGammaPostGamma = InstanceInput {
					SourceOp = "BC_Regamma_1",
					Source = "PreGammaPostGamma",
				},
				ImageGamma = InstanceInput {
					SourceOp = "BC_Regamma_1",
					Source = "Gamma",
					Name = "Image Gamma",
					Default = 2.2,
				},
				Depth = InstanceInput {
					SourceOp = "ChangeDepth_1",
					Source = "Depth",
					Name = "Set Depth",
				},
				OutputImage = InstanceInput {
					SourceOp = "DepthDefocusMacro_1",
					Source = "OutputImage",
				},
				ConnectZBufferToTheOutput = InstanceInput {
					SourceOp = "Bol_ZConnection_1",
					Source = "ConnectZBuffer",
					Name = "Connect Z Buffer to the Output",
				},
				Blend = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "BlendClone",
					Name = "Blend",
					Page = "Common Controls",
					Default = 1,
				},
				ProcessWhenBlendIs00 = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "ProcessWhenBlendIs00",
					Default = 0,
				},
				ApplyMaskInverted = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "ApplyMaskInverted",
					Default = 0,
				},
				MultiplyByMask = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MultiplyByMask",
					Default = 0,
				},
				FitMask = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "FitMask",
				},
				MaskChannel = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskChannel",
					Default = 3,
				},
				MaskHigh = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskHigh",
					ControlGroup = 12,
					Default = 1,
				},
				MaskLow = InstanceInput {
					SourceOp = "VariBlur_1",
					Source = "MaskLow",
					ControlGroup = 12,
					Default = 0,
				},
				EffectMask = InstanceInput {
					SourceOp = "PipeRouter4_1",
					Source = "Input",
				}
			},
			Outputs = {
				Output = InstanceOutput {
					SourceOp = "DepthDefocusMacro_1",
					Source = "Output",
				}
			},
			ViewInfo = GroupInfo { Pos = { 605, 346.5 } },
			Tools = ordered() {
				ChangeDepth_1 = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Depth = Input { Value = 4, },
						Input = Input {
							SourceOp = "Loader1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 10.6 } },
				},
				Bol_ChannelSelector_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						ProcessAlpha = Input { Value = 0, },
						Operation = Input {
							Value = 10,
							Expression = "iif(InvertDepthMap==1,10,0)",
						},
						ToRed = Input { Expression = "iif(BlurChannel<4,BlurChannel,18)", },
						Background = Input {
							SourceOp = "Instance_ChangeDepth_1",
							Source = "Output",
						},
						BlurChannel = Input { Value = 0, },
						InvertDepthMap = Input { Value = 1, },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 76.6 } },
					UserControls = ordered() {
						BlurChannel = {
							{ MBTNC_AddButton = "Red" },
							{ MBTNC_AddButton = "Green" },
							{ MBTNC_AddButton = "Blue" },
							{ MBTNC_AddButton = "Alpha" },
							{ MBTNC_AddButton = "Z" },
							LINKID_DataType = "Number",
							INPID_InputControl = "MultiButtonControl",
							IC_ControlPage = 0,
							MBTNC_StretchToFit = true,
							INPS_Name = "Blur Channel",
							INP_Default = 4,
						},
						InvertDepthMap = {
							LINKID_DataType = "Number",
							LINKS_Name = "Invert Depth Map",
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							INP_Default = 0,
						}
					}
				},
				BC_Degamma_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "BC_Regamma_1",
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur_1.Blend==0,0,BC_Regamma_1.PreGammaPostGamma)" },
						Direction = Input { Value = 1, },
						Input = Input {
							SourceOp = "ChangeDepth_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 43.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				VariBlur_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "BlendClone", },
						MaskChannel = Input { Value = 5, },
						Method = Input { Value = 2, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 0, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INP_Default = 1,
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INPID_InputControl = "SliderControl",
						},
						DefocusStrength = {
							LINKS_Name = "Defocus Strength",
							ICD_Center = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 10,
							INP_Default = 5,
						},
						XDefocusMultiplier = {
							LINKS_Name = "X Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						},
						YDefocusMultiplier = {
							LINKS_Name = "Y Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						},
						RedDefocusMultiplier = {
							LINKS_Name = "Red Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				VariBlurG_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00)", },
						ProcessRed = Input { Value = 0, },
						ProcessBlue = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur_1.Method",
						},
						Quality = Input { Expression = "VariBlur_1.Quality", },
						BlurChannel = Input { Value = 1, },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*GreenDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*GreenDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							LINKS_Name = "Green Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				VariBlurB_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "iif(BlueDefocusMultiplier==VariBlur_1.RedDefocusMultiplier,0,math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00))",
						},
						ProcessRed = Input { Value = 0, },
						ProcessGreen = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						Method = Input {
							Value = 2,
							Expression = "VariBlur_1.Method",
						},
						Quality = Input { Expression = "VariBlur_1.Quality", },
						LockXY = Input { Value = 0, },
						XBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*BlueDefocusMultiplier",
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*BlueDefocusMultiplier",
						},
						Input = Input {
							SourceOp = "VariBlurG_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 165, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							LINKS_Name = "Blue Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				BC_Regamma_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "iif(VariBlur_1.Blend==0,0,BC_Regamma_1.PreGammaPostGamma)", },
						Alpha = Input { Value = 1, },
						Gamma = Input { Value = 2.2, },
						Input = Input {
							SourceOp = "Bol_AddBokehProfile_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						PreGammaPostGamma = {
							LINKID_DataType = "Number",
							LINKS_Name = "Pre-Gamma / Post-Gamma",
							IC_ControlPage = 0,
							INPID_InputControl = "CheckboxControl",
							INP_Default = 1,
						}
					}
				},
				Bol_ZConnection_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "ConnectZBuffer", },
						ToRed = Input { Value = 4, },
						ToGreen = Input { Value = 4, },
						ToBlue = Input { Value = 4, },
						ToAlpha = Input { Value = 4, },
						EnableExtraChannels = Input { Value = 1, },
						ToZBuffer = Input { Value = 0, },
						Background = Input {
							SourceOp = "BC_Regamma_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_ChannelSelector_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						ConnectZBuffer = {
							INPID_InputControl = "CheckboxControl",
							LINKID_DataType = "Number",
							IC_ControlPage = 2,
							INPS_Name = "Connect Z Buffer",
							INP_Default = 1,
						}
					}
				},
				DepthDefocusMacro_1 = Dissolve {
					Transitions = {
						[0] = "DFTDissolve"
					},
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Mix = Input {
							Value = 0,
							Expression = "iif(OutputImage==3,0,1)",
						},
						Background = Input {
							SourceOp = "Bol_ZConnection_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bol_SharpZoneConnection_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 274.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						OutputImage = {
							{ MBTNCD_ButtonWidth = 0.333, MBTNC_AddButton = "Depth Channel" },
							{ MBTNC_AddButton = "Defocus Strength" },
							{ MBTNC_AddButton = "Sharp Zone" },
							{ MBTNCD_ButtonWidth = 1, MBTNC_AddButton = "Final Result" },
							LINKS_Name = "Output Image",
							INPID_InputControl = "MultiButtonControl",
							LINKID_DataType = "Number",
							MBTNC_StretchToFit = true,
							IC_ControlPage = 0,
							INP_Default = 3,
						}
					}
				},
				BOL_Maximum_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						Operation = Input { Value = 8, },
						Background = Input {
							SourceOp = "Clr_BackgroundMap_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Clr_ForegroundMap_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 175.6 } },
				},
				BC_SharpZone_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						ApplyMaskInverted = Input { Value = 1, },
						Brightness = Input {
							Value = -0.385,
							Expression = "-SharpZone",
						},
						ClipBlack = Input { Value = 1, },
						Input = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts_1",
							Source = "Output",
						},
						SharpZone = Input { Value = 0.385, },
						EffectMask = Input {
							SourceOp = "Bitmap2_1",
							Source = "Mask",
						}
					},
					ViewInfo = OperatorInfo { Pos = { -165, 208.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						SharpZone = {
							LINKS_Name = "Sharp Zone",
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 5,
							INP_Default = 0,
						}
					}
				},
				Bitmap1_1 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Invert = Input { Value = 1, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.2,
							Expression = "Low+SharpZoneDecay",
						},
						SharpZoneDecay = Input { Value = 0.2, },
					},
					ViewInfo = OperatorInfo { Pos = { -110, 274.6 } },
					UserControls = ordered() {
						SharpZoneDecay = {
							LINKID_DataType = "Number",
							INP_Default = 0,
							IC_ControlPage = 0,
							INPID_InputControl = "SliderControl",
							LINKS_Name = "Sharp Zone Decay",
						}
					}
				},
				BC_CurvatureFocalPoint_1 = BrightnessContrast {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						CromaticAberrations = Input { Value = 1, },
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						Gamma = Input { Value = 2, },
						Brightness = Input {
							Value = -10.8305124532498,
							Expression = "iif(Bol_ChannelSelector_1.InvertDepthMap==1, (1-FocalPoint)^(1/Gamma)*-1, -FocalPoint^(1/Gamma))",
						},
						Input = Input {
							SourceOp = "Bol_ChannelSelector_1",
							Source = "Output",
						},
						FocalPoint = Input { Value = -116.3, },
					},
					ViewInfo = OperatorInfo { Pos = { -275, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						FocalPoint = {
							INP_Default = 0.5,
							INPID_InputControl = "ColorControl",
							CLRC_ColorSpace = 0,
							LINKID_DataType = "Number",
							IC_ControlID = 12,
							IC_ControlPage = 0,
							INPS_Name = "Focal Point",
							IC_ControlGroup = 1,
						}
					}
				},
				Clr_BackgroundMap_1 = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations_1.ProcessWhenBlendIs00==1,GainRed*Clr_ForegroundMap_1.AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -385, 175.6 } },
				},
				Clr_ForegroundMap_1 = ColorGain {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						GainRed = Input {
							Value = -1,
							Expression = "-ForegroundDefocusMultiplier",
						},
						GainGreen = Input { Expression = "iif(Bol_ChromaticAberrations_1.ProcessWhenBlendIs00==1,GainRed/AxialChromaticAberrationsSlider,1)", },
						ColorRanges = Input {
							Value = ColorCurves {
								Curves = {
									{
										Points = {
											{ 0, 1 },
											{ 0.125, 0.75 },
											{ 0.375, 0.25 },
											{ 0.5, 0 }
										}
									},
									{
										Points = {
											{ 0.5, 0 },
											{ 0.625, 0.25 },
											{ 0.875, 0.75 },
											{ 1, 1 }
										}
									}
								}
							},
						},
						Input = Input {
							SourceOp = "BC_CurvatureFocalPoint_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 142.6 } },
					UserControls = ordered() {
						ForegroundDefocusMultiplier = {
							LINKS_Name = "Foreground Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 5,
							INP_Default = 1,
						},
						AxialChromaticAberrationsSlider = {
							INP_Default = 1.1,
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 5,
							LINKS_Name = "Axial Chromatic Aberrations",
						},
						ChromaticAberrations = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 5,
							IC_ControlPage = 0,
							INP_Default = 0,
							LINKS_Name = "Chromatic Aberrations",
						}
					}
				},
				Bitmap2_1 = BitmapMask {
					CtrlWShown = false,
					Inputs = {
						Level = Input { Value = 0.5, },
						MaskWidth = Input { Value = 2048, },
						MaskHeight = Input { Value = 1556, },
						PixelAspect = Input { Value = { 1, 1 }, },
						ClippingMode = Input { Value = FuID { "None" }, },
						Image = Input {
							SourceOp = "VBl_ReduceEdgeArtefacts_1",
							Source = "Output",
						},
						Channel = Input { Value = FuID { "Red" }, },
						High = Input {
							Value = 0.385,
							Expression = "-BC_SharpZone_1.Brightness",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -220, 241.6 } },
				},
				VBl_ReduceEdgeArtefacts_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*math.min(DepthDefocusMacro_1.OutputImage,1)",
						},
						Method = Input { Value = 2, },
						XBlurSize = Input { Value = 6, },
						Input = Input {
							SourceOp = "BOL_Maximum_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BOL_Maximum_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -275, 208.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.317647058823529 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_SharpZoneConnection_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Blend = Input { Expression = "math.min(DepthDefocusMacro_1.OutputImage,1)", },
						ToRed = Input {
							Value = 3,
							Expression = "iif(DepthDefocusMacro_1.OutputImage==2,3,5)",
						},
						ToGreen = Input {
							Value = 3,
							Expression = "ToRed",
						},
						ToBlue = Input {
							Value = 3,
							Expression = "ToRed",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Bitmap1_1",
							Source = "Mask",
						},
					},
					ViewInfo = OperatorInfo { Pos = { -55, 241.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_ChangeDepth_1 = ChangeDepth {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "ChangeDepth_1",
					Inputs = {
						Input = Input {
							SourceOp = "ChannelBooleans1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
					},
					ViewInfo = OperatorInfo { Pos = { -220, 43.6 } },
				},
				PipeRouter4_1 = PipeRouter {
					CtrlWShown = false,
					ViewInfo = PipeRouterInfo { Pos = { 220, 274.6 } },
				},
				Bol_ChromaticAberrations_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00",
						},
						ProcessRed = Input { Value = 0, },
						ProcessAlpha = Input { Value = 0, },
						ToRed = Input { Value = 4, },
						ToBlue = Input {
							Value = 4,
							Expression = "iif(VariBlurB_1.BlueDefocusMultiplier==1,4,2)",
						},
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "VariBlur_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "VariBlurB_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 110, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				ColorCurves_1 = ColorCurves {
					PickColor = true,
					CtrlWShown = false,
					Inputs = {
						EditAlpha = Input { Value = 0, },
						Red = Input {
							SourceOp = "ColorCurves_1Red",
							Source = "Value",
						},
						Green = Input {
							SourceOp = "ColorCurves_1Green",
							Source = "Value",
						},
						Blue = Input {
							SourceOp = "ColorCurves_1Blue",
							Source = "Value",
						},
						Alpha = Input {
							SourceOp = "ColorCurves_1Alpha",
							Source = "Value",
						},
						Input = Input {
							SourceOp = "Bol_EdgeSubtract_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 208.6 } },
					Tools = {
						ColorCurves_1Blue = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 68, Green = 68, Blue = 255 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Alpha = 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 = 204, Green = 204, Blue = 204 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Red = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 255, Green = 52, Blue = 52 },
							CtrlWShown = false,
							NameSet = true,
						},
						ColorCurves_1Green = LUTBezier {
							KeyColorSplines = {
								[0] = {
									[-0.134586921925896] = { -0.0543907909395727, RH = { -0.0990436313760217, -0.0285512687876905 }, Flags = { Linear = true } },
									[-0.0279570502762729] = { 0.00404944009849287, LH = { -0.0634967846449623, -0.0103132798035171 }, RH = { -0.018762958677511, 0.00776506050849738 } },
									[0] = { 0, LH = { -0.00931901675875764, -0.0019526782941334 }, RH = { 0.0110563518399643, 0.00158918692461571 } },
									[0.0322768622205375] = { 0.0571935254328659, LH = { 0.0181359692195394, 0.0637219000439139 }, RH = { 0.0785190023198877, 0.0358511837958423 } },
									[0.110178089160029] = { 0.0383212106494792, LH = { 0.0719685269433348, 0.037490850453694 } }
								}
							},
							SplineColor = { Red = 0, Green = 255, Blue = 0 },
							CtrlWShown = false,
							NameSet = true,
						}
					},
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Bol_EdgeSubtract_1 = ChannelBoolean {
					CtrlWShown = false,
					Inputs = {
						Operation = Input { Value = 2, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_Bol_ChromaticAberrations_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 330, 175.6 } },
				},
				Instance_Bol_ChromaticAberrations_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "Bol_ChromaticAberrations_1",
					Inputs = {
						Blend = Input { Expression = "ProcessWhenBlendIs00" },
						ToBlue = Input { Expression = "iif(VariBlurB_1.BlueDefocusMultiplier==1,4,2)" },
						Background = Input {
							SourceOp = "Instance_VariBlur_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "Instance_VariBlurB_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input { },
						Matte = Input { }
					},
					ViewInfo = OperatorInfo { Pos = { 330, 109.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					}
				},
				Instance_VariBlur_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlur_1",
					Inputs = {
						Blend = Input { Expression = "BlendClone" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						XBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*XDefocusMultiplier*RedDefocusMultiplier*1"
						},
						YBlurSize = Input {
							Value = 5,
							Expression = "DefocusStrength*YDefocusMultiplier*RedDefocusMultiplier*1"
						},
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 275, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlendClone = {
							INP_Default = 1,
							LINKID_DataType = "Number",
							INPS_Name = "Blend",
							INPID_InputControl = "SliderControl",
						},
						DefocusStrength = {
							LINKS_Name = "Defocus Strength",
							ICD_Center = 5,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 10,
							INP_Default = 5,
						},
						XDefocusMultiplier = {
							LINKS_Name = "X Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						},
						YDefocusMultiplier = {
							LINKS_Name = "Y Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						},
						RedDefocusMultiplier = {
							LINKS_Name = "Red Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				Instance_VariBlurG_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurG_1",
					Inputs = {
						Blend = Input { Expression = "math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00)" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						Quality = Input { Expression = "VariBlur_1.Quality" },
						XBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*GreenDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*GreenDefocusMultiplier" },
						Input = Input {
							SourceOp = "BC_Degamma_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 43.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						GreenDefocusMultiplier = {
							LINKS_Name = "Green Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				Instance_VariBlurB_1 = VariBlur {
					CtrlWShown = false,
					NameSet = true,
					SourceOp = "VariBlurB_1",
					Inputs = {
						Blend = Input { Expression = "iif(BlueDefocusMultiplier==VariBlur_1.RedDefocusMultiplier,0,math.min(VariBlur_1.BlendClone,Bol_ChromaticAberrations_1.ProcessWhenBlendIs00))" },
						Method = Input {
							Value = 0,
							Expression = "3-VariBlur_1.Method"
						},
						Quality = Input { Expression = "VariBlur_1.Quality" },
						XBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.XDefocusMultiplier*BlueDefocusMultiplier" },
						YBlurSize = Input { Expression = "VariBlur_1.DefocusStrength*VariBlur_1.YDefocusMultiplier*BlueDefocusMultiplier" },
						Input = Input {
							SourceOp = "Instance_VariBlurG_1",
							Source = "Output",
						},
						BlurImage = Input {
							SourceOp = "BC_SharpZone_1",
							Source = "Output",
						},
						StartEndRenderScripts = Input { },
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						}
					},
					ViewInfo = OperatorInfo { Pos = { 385, 76.6 } },
					Colors = {
						TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BlueDefocusMultiplier = {
							LINKS_Name = "Blue Defocus Multiplier",
							ICD_Center = 1,
							LINKID_DataType = "Number",
							INPID_InputControl = "SliderControl",
							IC_ControlPage = 0,
							INP_MaxScale = 3,
							INP_Default = 1,
						}
					}
				},
				Bol_AddBokehProfile_1 = ChannelBoolean {
					CtrlWShown = false,
					NameSet = true,
					Inputs = {
						Blend = Input {
							Value = 0,
							Expression = "ProcessWhenBlendIs00*BokehProfileStrength",
						},
						Operation = Input { Value = 1, },
						ToAlpha = Input { Value = 4, },
						Background = Input {
							SourceOp = "Bol_ChromaticAberrations_1",
							Source = "Output",
						},
						Foreground = Input {
							SourceOp = "ColorCurves_1",
							Source = "Output",
						},
						EffectMask = Input {
							SourceOp = "PipeRouter4_1",
							Source = "Output",
						},
					},
					ViewInfo = OperatorInfo { Pos = { 55, 175.6 } },
					Colors = {
						TileColor = { R = 0.666666666666667, G = 0.498039215686275, B = 0.235294117647059 },
						TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
					},
					UserControls = ordered() {
						BokehProfileStrength = {
							LINKID_DataType = "Number",
							INP_Default = 1,
							INPID_InputControl = "SliderControl",
							INPS_Name = "BokehProfileStrength",
							LINKS_Name = "Bokeh Profile Strength",
						},
						BokehProfile = {
							LBLC_DropDownButton = true,
							INPID_InputControl = "LabelControl",
							LBLC_NumInputs = 8,
							IC_ControlPage = 0,
							INP_Default = 0,
							LINKS_Name = "Bokeh Profile",
						}
					}
				}
			},
			Colors = {
				TileColor = { R = 0.423529411764706, G = 0.498039215686275, B = 0.298039215686275 },
				TextColor = { R = 0.862745098039216, G = 0.862745098039216, B = 0.862745098039216 },
			}
		},
		FLDepthOfField1 = ofx.com.frischluft.openFX.DepthOfField {
			Inputs = {
				Source = Input {
					SourceOp = "Loader1",
					Source = "Output",
				},
				Depth = Input {
					SourceOp = "ChannelBooleans1",
					Source = "Output",
				},
				show = Input { Value = 0, },
				radius = Input { Value = 24.5, },
				["focal distance"] = Input { Value = 47, },
				["focal point"] = Input { Value = { 0.688444190262476, 0.455615956056108 }, },
				["highlight intensity"] = Input { Value = 0, },
				["gamma correction"] = Input { Value = 1, },
				["-> Depth Buffer..."] = Input { Value = 1, },
				["depth invert"] = Input { Value = 0, },
				["depth curve"] = Input { Value = 25, },
				["black point"] = Input { Value = -350, },
				["white point"] = Input { Value = -97.0142415364583, },
				["auto range"] = Input { Value = 0, },
				["-> Iris..."] = Input { Value = 0, },
				["iris rounded"] = Input { Value = 1, },
				["iris facets"] = Input { Value = 3, },
				["iris angle"] = Input { Value = 0, },
				["iris border thickness"] = Input { Value = 0.3, },
				["iris border brightness"] = Input { Value = 0, },
				["iris aspect"] = Input { Value = 0, },
				["-> Highlight Selection..."] = Input { Value = 0, },
				["lightness start"] = Input { Value = 0.8, },
				["lightness end"] = Input { Value = 1, },
				["lightness soften"] = Input { Value = 0, },
				["-> Outside Image..."] = Input { Value = 0, },
				["outside horizontal"] = Input { Value = 0, },
				["outside vertical"] = Input { Value = 0, },
				["outside colorRed"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorGreen"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorBlue"] = Input {
					Value = 0,
					Disabled = true,
				},
				["outside colorAlpha"] = Input {
					Value = 0,
					Disabled = true,
				},
			},
			ViewInfo = OperatorInfo { Pos = { 605, 478.5 } },
		},
		Gamut1 = GamutConvert {
			Inputs = {
				OutputSpace = Input { Value = FuID { "sRGB" }, },
				Input = Input {
					SourceOp = "DepthDefocusMacro_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 770, 346.5 } },
		},
		Gamut1_1 = GamutConvert {
			Inputs = {
				OutputSpace = Input { Value = FuID { "sRGB" }, },
				Input = Input {
					SourceOp = "FLDepthOfField1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 770, 478.5 } },
		}
	}
}
You do not have the required permissions to view the files attached to this post.

User avatar
gez
Fusioneer
Posts: 153
Joined: Mon Jul 16, 2018 6:21 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: [Update] Depth Defocus 7.5

#9

Post by gez » Tue Aug 21, 2018 12:19 pm

It looks like the problem is caused by the infinite Z value from the transparent pixels.
The suggestion of producing an image with a background might work if the background plane produces a real z-depth value (in other words, the background should be geometry, not just the RGBA image composited on colour).
I've been trying to figure out the way to use the Depth Defocus node with the Extend Edges macros as outlined here:
https://www.steakunderwater.com/VFXPedi ... escription
So far no luck, I'll keep playing with it.
Last edited by gez on Thu Aug 23, 2018 7:48 pm, edited 2 times in total.

User avatar
steakkon
Posts: 10
Joined: Wed May 30, 2018 5:23 am
Location: Berlin
Contact:

Re: [Update] Depth Defocus 7.5

#10

Post by steakkon » Thu Aug 23, 2018 9:46 am

Hi gez,
thank you for the idea. However this didn't work out for me either.

User avatar
gez
Fusioneer
Posts: 153
Joined: Mon Jul 16, 2018 6:21 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: [Update] Depth Defocus 7.5

#11

Post by gez » Thu Aug 23, 2018 5:21 pm

@steakkon,
There is another thread from a user who bumped with the same, but using a render from C4D.
It was suggested to create some geometry to cast depth data so the empty RGB pixels don't end up with infinite Z.
Since C4D comes with cycles, I suggested to try something that could also work in Blender: a plane or geometry with a holdout shader in the background, to produce transparent RGB with usable z-data.
I did some preliminary tests and it seems to work just fine.

User avatar
pingking
Fusionista
Posts: 743
Joined: Thu Aug 14, 2014 9:10 am

Re: [Update] Depth Defocus 7.5

#12

Post by pingking » Fri Aug 24, 2018 1:00 am

gez wrote:
Thu Aug 23, 2018 5:21 pm
Since C4D comes with cycles
You can get a plugin for C4D which integrates cycles in C4D, but out of the box it comes with amd prorender and the 2 cinema4d renderer

User avatar
gez
Fusioneer
Posts: 153
Joined: Mon Jul 16, 2018 6:21 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: [Update] Depth Defocus 7.5

#13

Post by gez » Sat Aug 25, 2018 2:31 pm

pingking wrote:
Fri Aug 24, 2018 1:00 am
You can get a plugin for C4D which integrates cycles in C4D, but out of the box it comes with amd prorender and the 2 cinema4d renderer

Oh, thanks for the clarification. I'm a Blender use and remembered some news about Cycles coming to C4D so I wrongly assumed that it was a native integration.
I did a quick search and found that there isn't an equivalent for Cycles holdout in C4D except for materials with a fully transparent alpha channel, but I couldn't find any information on whether it creates z-data or not.

The EXR provided in this thread came from Blender though, so the holdout trick should work.

User avatar
JUNE
Fusionista
Posts: 266
Joined: Wed Aug 06, 2014 5:45 am
Contact:

CGS_DOF vs Frischluft Lenscare

#14

Post by JUNE » Wed Aug 29, 2018 7:56 am

first Normal Zdepth - alpha
second + DOF (WIP...)

Image

User avatar
theotheo
Fusionista
Posts: 318
Joined: Thu Aug 07, 2014 8:35 am
Answers: 2
Been thanked: 1 time

Re: [Update] Depth Defocus 7.5

#15

Post by theotheo » Thu Aug 30, 2018 2:11 pm

Hey June, that sure looks sexy. Are you planning on releasing it on gumroad too ? Happy to get a copy.