Animation Curves Metadata clamped at 5

The animation curves can be adjusted with the slider to a value between -1 and 1 which makes sense for morph targets. However, if you add metadata and want to change the value to 50 for a material parameter, for some weird reason it clamps at -5 for negative values or +5 for positive values which makes absolutely no sense at all… For a workaround I need to make a new curve even though I just need a constant.

Hi,

I’m not sure how you have your project set up, but if you could post a sample project I can take a better look at the issue.

-Thank you

There is nothing to add there. Not sure if you ever used Animation Curves before, here the [doc link][1].
Add Metadata instead of a curve, and change the weight in the animation curves

https://docs.unrealengine.com/latest/images/Engine/Animation/Sequences/Curves/ConvertToMaterialCurve2.jpg

panel to a value greater than 5. I could add this to feature requests in the forum, but it makes no sense for me to clamp it, except the coder thought that all values will be mapped in the material to a -1…+1 range. Still, I think this should be changed. I could also make a pull request, but I’m 2 lazy to search the code in the source.

Hi,

When you say:
“However, if you add metadata and want to change the value to 50 for a material parameter, for some weird reason it clamps at -5 for negative values or +5 for positive values”

I will need more information on your setup in order to take a better look at this issue, due to I am able to change the values as mentioned above in the curve editor on my end.

-Thank you

When clicking on Add, are you sure you clicked on “Add Metadata” and not “Add Variable Curve”? Because the first one is clamped, even on 4.18.2. Can you share a screenshot of your animation editor?

Hi,

Below is a shot of adding metadata in the animation editor. If you can provide more information/etc. on you set up I can take another look at the issue.

-Thanks

I just realized you said you were able to edit the values in the curve editor. I can also change them there. However, if I use the slider, then it’s clamped between -1 and +1 and if I click on the slider and type a value manually, then it’s clamped to -5 and +5.

Hi,

The weight clamping at -5 and +5 is by design. If you need to, you can change it to support higher values on line #34 in the SAnimCurveViewr.cpp. This may cause problems with the project though, and we generally don’t recommend this. The weight preview slider however does not stay consistent with the entered value. When the weight is changed to a value other than one (say 5) and then adjusted using the slider, the value defaults as if it was still one, and being changed from there. I have gone ahead and bugged this issue, which can be found here in our public tracker if you would like to keep an eye on it. If you have any other questions regarding the issue above, feel free to reopen this thread.

-Thank you