Jump to: Board index » General » Fusion

how to animate pass trough function

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

Rick van den Berg

  • Posts: 1519
  • Joined: Tue Jun 02, 2015 7:47 am
  • Location: Netherlands

how to animate pass trough function

PostMon Jan 02, 2017 2:18 pm

Hi, i have a composition with a lot of image planes and a camera moving slowly along them. the planes are routed into a few different merge3d nodes to animated them as a group. can i turn off the groups/merge3d nodes when the camera has passed one of them? so fusion dont have to calculate it (and that i dont see them anymore when the camera goes back)

i can scale them down until you dont see them anymore, but fusion still has to calculate them.
Offline
User avatar

Yuri V. Nemets

  • Posts: 122
  • Joined: Mon Dec 08, 2014 10:41 am
  • Location: Ukraine, Kyiv

Re: how to animate pass trough function

PostMon Jan 02, 2017 5:32 pm

Animate and turn off visibility in ImagePlanes.

Code: Select all
{
   Tools = ordered() {
      ImagePlane3D1_1_1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.725084265952018, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_1_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 990, 49.5, }, },
      },
      ImagePlane3D1_1_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [62] = { 1, RH = { 62.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [63] = { 0, LH = { 62.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput2 = Input {
               SourceOp = "Merge3D2",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "Merge3D2_1",
               Source = "Output",
            },
            SceneInput4 = Input {
               SourceOp = "Merge3D2_1_1",
               Source = "Output",
            },
            SceneInput5 = Input {
               SourceOp = "Merge3D2_1_1_1",
               Source = "Output",
            },
            SceneInput6 = Input {
               SourceOp = "Merge3D2_1_1_1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 346.5, }, },
      },
      Renderer3D1 = Renderer3D {
         Inputs = {
            MotionBlur = Input { Value = 1, },
            Quality = Input { Value = 5, },
            GlobalOut = Input { Value = 199, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            SceneInput = Input {
               SourceOp = "Merge3D3",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1210, 412.5, }, },
      },
      Merge3D2_1_1_1_1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = -4.55762054997006, },
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D1_2_1_1_1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1_1_1_1_1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1540, 115.5, }, },
      },
      ImagePlane3D1_2_1_1_1 = ImagePlane3D {
         CtrlWZoom = false,
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.747806623883253, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_2_1_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 1705, 49.5, }, },
      },
      ImagePlane3D1_2_1_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [137] = { 1, RH = { 137.333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [138] = { 0, LH = { 137.666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      ImagePlane3D1_1_1_1_1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.725084265952018, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_1_1_1_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 1540, 49.5, }, },
      },
      ImagePlane3D1_1_1_1_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [137] = { 1, RH = { 137.333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [138] = { 0, LH = { 137.666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D2_1_1_1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = -3.26799487723825, },
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D1_2_1_1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1_1_1_1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1265, 115.5, }, },
      },
      ImagePlane3D1_2_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.747806623883253, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_2_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 1100, 49.5, }, },
      },
      ImagePlane3D1_2_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [62] = { 1, RH = { 62.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [63] = { 0, LH = { 62.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D3 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D2",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 412.5, }, },
      },
      ImagePlane3D2 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.0150708230777142, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -0.174505265718629, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 3, },
            MaterialInput = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 478.5, }, },
      },
      Text1 = TextPlus {
         Inputs = {
            GlobalOut = Input { Value = 199, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Font = Input { Value = "Arial", },
            StyledText = Input { Value = "START | FINISH", },
            Style = Input { Value = "Bold", },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = "",
               },
            },
            Red1 = Input { Value = 0, },
            Green1 = Input { Value = 0, },
            Blue1 = Input { Value = 0, },
            ShadingGradient1 = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            RenderToDPTFile = Input { Disabled = true, },
            DPTType = Input { Disabled = true, },
            DPTResolution = Input { Disabled = true, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 544.5, }, },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input {
               SourceOp = "Camera3D1ZOffset",
               Source = "Value",
            },
            ["Transform3DOp.Rotate.Y"] = Input {
               SourceOp = "Camera3D1YRotation",
               Source = "Value",
            },
            AoV = Input { Value = 45.4771154969511, },
            FLength = Input { Value = 18, },
            ["Stereo.Mode"] = Input { Value = FuID { "OffAxis", }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 880, 412.5, }, },
      },
      Camera3D1ZOffset = BezierSpline {
         SplineColor = { Red = 254, Green = 56, Blue = 46, },
         NameSet = true,
         KeyFrames = {
            [0] = { 0.181180183449212, RH = { 33, -1.67548453506209, }, Flags = { Linear = true, }, },
            [99] = { -5.38881397208468, LH = { 66, -3.53214925357339, }, RH = { 106, -6.34498289828793, }, Flags = { Linear = true, }, },
            [120] = { -8.25732075069442, LH = { 113, -7.30115182449118, }, RH = { 146.333333333333, -5.5724068190932, }, Flags = { Linear = true, }, },
            [199] = { -0.202578955890763, LH = { 172.666666666667, -2.88749288749198, }, Flags = { Linear = true, }, },
         },
      },
      Camera3D1YRotation = BezierSpline {
         SplineColor = { Red = 128, Green = 255, Blue = 128, },
         NameSet = true,
         KeyFrames = {
            [99] = { 0, RH = { 106, 60, }, Flags = { Linear = true, }, },
            [120] = { 180, LH = { 113, 120, }, Flags = { Linear = true, }, },
         },
      },
      ImagePlane3D1_1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.725084265952018, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 49.5, }, },
      },
      ImagePlane3D1_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [43] = { 1, RH = { 43.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [44] = { 0, LH = { 43.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D2_1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = -0.949368788333817, },
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D1_2",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1_1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 825, 115.5, }, },
      },
      ImagePlane3D1_2 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.747806623883253, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_2Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 825, 49.5, }, },
      },
      ImagePlane3D1_2Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [43] = { 1, RH = { 43.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [44] = { 0, LH = { 43.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D2_1_1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = -2.03860880071893, },
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D1_2_1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1_1_1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 115.5, }, },
      },
      ImagePlane3D1_2_1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.747806623883253, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_2_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 1375, 49.5, }, },
      },
      ImagePlane3D1_2_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [84] = { 1, RH = { 84.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [85] = { 0, LH = { 84.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      ImagePlane3D1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.725084265952018, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.SubdivisionWidth"] = Input { Value = 100, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 385, 49.5, }, },
      },
      ImagePlane3D1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [26] = { 1, RH = { 26.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [27] = { 0, LH = { 26.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Plasma1 = Plasma {
         Inputs = {
            GlobalOut = Input { Value = 199, },
            Width = Input { Value = 100, },
            Height = Input { Value = 100, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Phase = Input {
               Value = 19.9,
               Expression = "time/10",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, -181.5, }, },
      },
      ImagePlane3D1_1_1_1_1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.725084265952018, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1_1_1_1_1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 1265, 49.5, }, },
      },
      ImagePlane3D1_1_1_1_1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [84] = { 1, RH = { 84.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [85] = { 0, LH = { 84.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      ImagePlane3D1 = ImagePlane3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.747806623883253, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.59921411024747, },
            ["SurfacePlaneInputs.SubdivisionWidth"] = Input { Value = 100, },
            ["SurfacePlaneInputs.Visibility.Nest"] = Input { Value = 1, },
            ["SurfacePlaneInputs.Visibility.IsVisible"] = Input {
               SourceOp = "ImagePlane3D1Visible",
               Source = "Value",
            },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Plasma1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 550, 49.5, }, },
      },
      ImagePlane3D1Visible = BezierSpline {
         SplineColor = { Red = 247, Green = 93, Blue = 129, },
         NameSet = true,
         KeyFrames = {
            [26] = { 1, RH = { 26.3333333333333, 0.666666666666667, }, Flags = { Linear = true, }, },
            [27] = { 0, LH = { 26.6666666666667, 0.333333333333333, }, Flags = { Linear = true, }, },
         },
      },
      Merge3D2 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "ImagePlane3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 550, 115.5, }, },
      },
   },
}
Offline

Rick van den Berg

  • Posts: 1519
  • Joined: Tue Jun 02, 2015 7:47 am
  • Location: Netherlands

Re: how to animate pass trough function

PostTue Jan 03, 2017 12:53 pm

thanks, that will do it. though it would be alot more handy in my case to be able to do that to the whole group/merge.
Offline

Alaz Soytemiz

  • Posts: 142
  • Joined: Tue Nov 11, 2014 8:26 am

Re: how to animate pass trough function

PostTue Jan 03, 2017 4:30 pm

I use 'colorgain' 'gain alpha' for it.
Windows 10 Pro 64Bit
Processor: Intel(R) Core(TM) i9-11900K
Ram: 128GB
Graphics Card: NVIDIA GeForce RTX 3070 Ti
Disks: Samsung SSD 980 PRO

Return to Fusion

Who is online

Users browsing this forum: No registered users and 33 guests