How to make Curve from interpcurve struct and other way around ?

I recently found out you can set a timeline’s track curve to a curve asset dynamicaly, pretty powerfull…

Now i also find the 'Make InterpCurve Float/Vector/etc ’ nodes… Where are these used ?

Is there a way to create a curve with this at runtime ?

I see you can add points and tangents to this… one is a curve object, the other a interp curve struct… any way to create one from the other?

Is this possible ?

I only find the nodes to make / break them, not any methods that use them.

I guess there is some interp function that takes these ?

no-one any idea ?

Are you still interested in this? I’m working on almost the same problem right now, I dug a little deeper and found that there is an FInterpCurve C++ class that looks very similar to InterpCurve Float. This class has an “evaluate” method that should allow you to check the output of any input along the curve.

For the blueprints version the way I understand it now is that you create a couple points with an x&y value, add them to an array and make a curve out of them using the “make InterpCure Float” node. Then you should be able to evaluate in any point along that curve, however in the blueprints version there is no “evaluate” node, nor any way that I can find to do something with this new curve object.

I guess if you really needed it you could try to use the C++ class (which is what I’ll do next and report back) but it seems a bit mysterious why this ability to create curves in blueprints is added in the first place. I hope one of the Unreal devs can elaborate on this as there is no mention of it in the documentation either.

1 Like

Have you ever solved this? I need runtime created curves aswell.