Page 1 of 1

How to bake expressions?

PostPosted: Sun Aug 13, 2017 7:49 am
by Eugene Afanasiev
Expressions get too fast too slow. Could they be baked?
Code: Select all
{
   Tools = ordered() {
      Rectangle3_1_2 = RectangleMask {
         Inputs = {
            PaintMode = Input { Value = FuID { "Subtract" }, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Width = Input { Value = 0.077, },
            Height = Input {
               Value = 0.077,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.82, 131.623 } },
      },
      Rectangle2_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Width = Input {
               SourceOp = "Rectangle2_2Width",
               Source = "Value",
            },
            Height = Input {
               Value = 0.648,
               Expression = "Width",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 2136.82, 32.6232 } },
      },
      Rectangle2_2Width = BezierSpline {
         SplineColor = { Red = 225, Green = 255, Blue = 0 },
         NameSet = true,
         KeyFrames = {
            [56] = { 0, RH = { 57.9745639825804, 0.10392442013581 }, Flags = { Linear = true } },
            [74] = { 0.648, LH = { 67.4565091783757, 0.49063670785631 }, RH = { 77.285737453364, 0.727018138311204 } },
            [80] = { 1, LH = { 78.6959311171638, 1 } }
         }
      },
      Rectangle2_1_1 = RectangleMask {
         Inputs = {
            PaintMode = Input { Value = FuID { "Subtract" }, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Width = Input {
               Value = 0.838,
               Expression = "1-Rectangle2_2.Width/4",
            },
            Height = Input {
               Value = 0.838,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle2_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.82, 65.6232 } },
      },
      Rectangle3_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Width = Input {
               Value = 0.081,
               Expression = "Rectangle2_2.Width/8",
            },
            Height = Input {
               Value = 0.081,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle2_1_1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.82, 98.6232 } },
      },
      Rectangle3_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input { Expression = "Point(0.5, 0.5)", },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2135.9, 165.543 } },
      },
      Rectangle3_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.648, 0.648 },
               Expression = "Point(Rectangle2_2.Width,Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2135.9, 198.543 } },
      },
      Rectangle3_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.324, 0.324 },
               Expression = "Point(Rectangle2_2.Width/2,Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 233.111 } },
      },
      Rectangle3_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.676, 0.676 },
               Expression = "Point(1-Rectangle2_2.Width/2,1-Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 266.111 } },
      },
      Rectangle3_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.324, 0.648 },
               Expression = "Point(Rectangle2_2.Width/2,Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 299.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.324, 0.352 },
               Expression = "Point(Rectangle2_2.Width/2,1-Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 332.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.676, 0.648 },
               Expression = "Point(1-Rectangle2_2.Width/2,Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 365.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.676, 0.352 },
               Expression = "Point(1-Rectangle2_2.Width/2,1-Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 398.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.324, 0.676 },
               Expression = "Point(Rectangle2_2.Width/2,1-Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 431.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.352, 0.676 },
               Expression = "Point(1-Rectangle2_2.Width,1-Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 464.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.352, 0.352 },
               Expression = "Point(1-Rectangle2_2.Width,1-Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 497.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.648, 0.324 },
               Expression = "Point(Rectangle2_2.Width,Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 530.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.676, 0.324 },
               Expression = "Point(1-Rectangle2_2.Width/2,Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 563.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.648, 0.676 },
               Expression = "Point(Rectangle2_2.Width,1-Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 596.114 } },
      },
      Merge17_1 = Merge {
         CtrlWZoom = false,
         Inputs = {
            Blend = Input {
               SourceOp = "Merge17_1Blend",
               Source = "Value",
            },
            Background = Input {
               SourceOp = "Background7_1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 2303.27, 611.947 } },
      },
      Merge17_1Blend = BezierSpline {
         SplineColor = { Red = 205, Green = 205, Blue = 205 },
         NameSet = true,
         KeyFrames = {
            [17] = { 1, RH = { 30.6666666666667, 0.666666666666667 }, Flags = { Linear = true } },
            [58] = { 0, LH = { 44.3333333333333, 0.333333333333333 }, Flags = { Linear = true } }
         }
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.648, 0.352 },
               Expression = "Point(Rectangle2_2.Width,1-Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 629.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.352, 0.648 },
               Expression = "Point(1-Rectangle2_2.Width,Rectangle2_2.Width)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 662.114 } },
      },
      Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Center = Input {
               Value = { 0.352, 0.324 },
               Expression = "Point(1-Rectangle2_2.Width,Rectangle2_2.Width/2)",
            },
            Width = Input { Value = 0.026, },
            Height = Input {
               Value = 0.026,
               Expression = "Width",
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_2",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2136.72, 695.114 } },
      },
      Background7_1 = Background {
         Inputs = {
            Width = Input { Value = 1000, },
            Height = Input {
               Value = 1000,
               Expression = "Width",
            },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            TopLeftRed = Input { Value = 0.67, },
            TopLeftGreen = Input { Value = 0.922800660926404, },
            TopLeftBlue = Input { Value = 1, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1 },
                     [1] = { 1, 1, 1, 1 }
                  }
               },
            },
            EffectMask = Input {
               SourceOp = "Rectangle3_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1_1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 2128.44, 728.114 } },
      },
      ImagePlane3D2_1 = ImagePlane3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 7, },
            MaterialInput = Input {
               SourceOp = "Background7_1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 7, },
         },
         ViewInfo = OperatorInfo { Pos = { 2238.44, 728.114 } },
      },
      Duplicate3D1_1 = Duplicate3D {
         Inputs = {
            LastCopy = Input { Value = 10, },
            TimeOffset = Input { Value = -1.879, },
            ["Translate.Z"] = Input { Value = 0.55, },
            SceneInput = Input {
               SourceOp = "ImagePlane3D2_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 2348.44, 728.114 } },
      },
      Duplicate3_1 = Fuse.Duplicate {
         Inputs = {
            Copies = Input { Value = 10, },
            TimeOffset = Input { Value = 0.679, },
            RandomSeed = Input { Value = 26024, },
            Background = Input {
               SourceOp = "Background7_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 2143.16, 766.539 } },
      },
      Merge18_1 = Merge {
         Inputs = {
            Blend = Input { Expression = "iif (Merge17_1.Blend ==0, 0,1)", },
            Background = Input {
               SourceOp = "Merge17_1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 2437.62, 587.102 } },
      }
   }
}