Panning a texture with a timeline seems to reverse offset direction





conveyor_mat

Hey there,

I’m having some really strange behaviour on a blueprint I created. What it basically does, is, that it uses two different timelines to start and stop the conveyor belt. I use a scalar param as a simple speed multiplier in my blueprint. Starting the belt works completely fine, but when I try to stop it, by changing the multiplier to 0, it reverses the offset for some reason. I have inclcuded some images and footage of the problem. I also print the multiplier value, so that I can check the changes there - no problem. I cannot really explain this behaviour and would like to know, if I’m doing something wrong here. Thanks for your help!

It happens because speed gets multiplied by time in the panner node. And since time ever increases, when you start decreasing speed, the result starts changing from time * 0.2 to Time * 0; and Panner is not movement, it simply shifts UV coordinates around, and when you’re setting speed to 0, it returns to zero shift of UVs, and since you’ve already shifted UVs by a certain amount, they are returning back to 0. Hope it makes sense.

2 Likes

That makes sense, thank you. Do you have any ideas on how to get around this?

I don’t know how to do it in the material alone, but you can control it on Tick in blueprint.
Material:


Blueprint:

Fraction is optional, I just did it to avoid large Offset values.

1 Like

Yeah, that did the trick. I had to change my setup a bit for this method - but it works now as intended - thank you!

1 Like