Page 1 of 1

"Use Color from parent Particle" in pSpawn doesn't work

PostPosted: Thu Jan 14, 2016 7:59 am
by Tim Vandekerckhove
Fusion version:
8 build 23 (beta3) and before
OS and version:
Windows 7
Additional relevant system info:
/
Description of the bug:
The "Use Color from parent Particle" option in the pSpawn node doesn't work. The color can only be controlled by the pSpawn Style tab. Now particles can't have trails in their respective colors.
Maybe add a "use Size from parent Particle" or maybe "use Style from parent Particle" option.
Severity (Trivial, Minor, Major, Critical)
Minor but probably easily fixed.
Steps to reproduce:
Code: Select all

{
   Tools = ordered() {
      pEmitter1 = pEmitter {
         ID = 1,
         Inputs = {
            Number = Input {
               SourceOp = "pEmitter1Number",
               Source = "Value",
            },
            Lifespan = Input { Value = 200, },
            Set1 = Input { Value = 1, },
            Style = Input { Value = FuID { "ParticleStyleNGon" }, },
            ["ParticleStyle.ColorControls"] = Input { Value = 1, },
            ["ParticleStyle.Red"] = Input { Value = 0.5, },
            ["ParticleStyle.Green"] = Input { Value = 0.5, },
            ["ParticleStyle.Blue"] = Input { Value = 0.5, },
            ["ParticleStyle.ColorVariance"] = Input { Value = 1, },
            ["ParticleStyle.BlueLow"] = Input { Value = -1, },
            ["ParticleStyle.BlueHigh"] = Input { Value = 1, },
            ["ParticleStyle.ColorOverLife"] = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 1, 1, 1, 1 }
                  }
               },
            },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeoverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BluroverLife2D",
               Source = "Value",
            },
            ["SphereRgn.Size"] = Input { Value = 1, },
            ["ParticleStyleNGon.NGonType"] = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 561, 119 } },
      },
      pEmitter1Number = BezierSpline {
         SplineColor = { Red = 233, Green = 206, Blue = 78 },
         NameSet = true,
         KeyFrames = {
            [0] = { 10, RH = { 0.333333333333333, 6.66666666666667 }, Flags = { Linear = true } },
            [1] = { 0, LH = { 0.666666666666667, 3.33333333333333 }, Flags = { Linear = true } }
         }
      },
      pEmitter1SizeoverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pEmitter1BluroverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pTurbulence1 = pTurbulence {
         ID = 8,
         Inputs = {
            StrengthOverLifeLUT = Input {
               SourceOp = "pTurbulence1StrengthoverLifeLUT",
               Source = "Value",
            },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
            SetMode = Input { Value = FuID { "DontAffect" }, },
            Set1 = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 672, 118 } },
      },
      pTurbulence1StrengthoverLifeLUT = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pSpawn1 = pSpawn {
         ID = 4,
         CtrlWZoom = false,
         Inputs = {
            Number = Input { Value = 1, },
            Color = Input { Value = 1, },
            VelocityControls = Input { Value = 1, },
            VelocityTransfer = Input { Value = 0, },
            NewSet2 = Input { Value = 1, },
            Input = Input {
               SourceOp = "pTurbulence1",
               Source = "Output",
            },
            Style = Input { Value = FuID { "ParticleStyleNGon" }, },
            ["ParticleStyle.ColorControls"] = Input { Value = 1, },
            ["ParticleStyle.ColorVariance"] = Input { Value = 1, },
            ["ParticleStyle.ColorOverLife"] = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 1, 1, 1, 1 }
                  }
               },
            },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.05, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pSpawn1SizeoverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pSpawn1BluroverLife2D",
               Source = "Value",
            },
            ["ParticleStyleNGon.NGonType"] = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 795, 117 } },
      },
      pSpawn1SizeoverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pSpawn1BluroverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pRender1 = pRender {
         Inputs = {
            ["_MotionBlurWarning"] = Input { Disabled = true, },
            Width = Input { Value = 2048, },
            Height = Input { Value = 1556, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            IntegrationMethod = Input { Value = FuID { "RK4" }, },
            ["MaterialID.MaterialID"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            Input = Input {
               SourceOp = "pSpawn1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 937, 121 } },
      }
   }
}