Fadeout Spline

Hello. I have problem with spline and fadeout.

This is Event Graph:

And this is construction script:


My problem is that its fadeout only last spline.

Any idea how to repair this ?

  • could you explain the reasoning behind that inner material loop in the CS?
  • did you mean to include this part in the abovementioned loop:

My problem is that its fadeout only last spline.

How should it, ideally, work then? If you want fade out all of them, why not use the material parameter collection - serious question, you may have you reasons, ofc.

*Could you explain the reasoning behind that inner material loop in the CS?

I download existing materials from the mesh and create a material instance that replaces the material with one that has a fadeout.

  • did you mean to include this part in the abovementioned loop:

Thanks to this part of the code, I create another mesh that connects to the previous one.

My plan for this spline was to create a flexible wall that would fade out piece by piece rather than all of it. I want a section of the wall to fade out where the character is. Of course, I can achieve this by entering the entire wall manually, but I wanted a more flexible solution.

That’s one of the problems - and the one that currently stands out the most. You’re looping every material for every smc. Let’s say you have 5 meshes and 5 materials. You will end up adding 25 material instances instead of 5, and then apply tangents 25 times as well…


See if the following makes sense in your case:

  • in the Construction Script, Add the SMCs in an array and make 1 DMI for each, and assign it:

t

  • to loop through the walls:


I’ll admit I do not fully understand what the Timeline has to do with the Construction Script. I guess you want to create the materials in the CS but fade them run-time. Am I close?