I have created a material for a flashing police light bar I am happy with. However, I was going to make it into a parent material with parameters, so I could make child instances of it and tweak a few of the parameters.
One of the parameters I wanted to tweak was the SpeedY of the Panner node, but I don’t see how I can feed it into the panner node?
Hey there, I also wanted to be able to adjust the Panner X/Y speed from a material instance, so I created a custom Panner node.
Basically what I did was create a new MaterialFunction that is a copy of the Panner node, but with and additional input for the X/Y speed, and I now use it anywhere I would have used the Panner node.
Yeah it is definitly a workaround, unfortunately it is the only way to modify the Speed values outside of the material graph.
Just wanted to add a couple of notes here. You will want to set up the MaterialFunction’s details panel similar to the image below. This will expose the function to the Palette so you can use it in any material. I added mine to “DC_Functions” which is where I put my custom functions, but use whichever category you want.
Here is an example of how to use the function. I added in both a CollectionParameter and a VectorParameter to show how both can be used. Since they are 4 channel vectors by default, I mask the R & G channels, but that is not necessary since the function masks the input as well.
So this is the only way currently to modify the speed, I mentioned it to Epic before that it would be nice to have this exposed to the regular Panner node as well, we’ll have to see if that gets added in a future release.
Dont know if this will help someone else. But I was looking for how to do this also for a texture I wanted to animate in only one direction (could be either speed X or speed Y).
You can input a time with speed variable into the time pin on the panner to apply a parameter based value modifier to the speed.
If you set the speed you want to be controlled by a parameter on the material to be 1.0 you can then input a value between 0 and 1 to fine tune that speed as desired
This allowed me to have material instances providing a different speed parameter (even 0 for no rotation) worked like a charm
This is the best answer. Thank you.
In the process I also discovered that you can use the MakeFloat2 node, which seems to work even better for this, and doesn’t require 2 panner nodes.
I realize this post is rather old, but since it seems to be relevant in search results, I’ll post the solution that I came across while trying some of the others here.
I’m not sure if this is a new , but you can simply use the MakeFloat2 component with two single value parameters to output a vector into the panner component.
This is exactly what I needed. I was able to adjust the speed before, but it would also adjust the range of panning. With the TimeWithSpeedVariable → Cosine → Panner I can now adjust the range of motion AND speed of motion.