x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 24 '17 at 03:51 PM in Bug Reports

avatar image

Ninjin
4.2k 88 38 152

avatar image Ridley R ♦♦ STAFF Nov 30 '17 at 10:57 PM

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

avatar image Ninjin Dec 03 '17 at 03:07 AM

There is nothing to add there. Not sure if you ever used Animation Curves before, here the doc link. Add Metadata instead of a curve, and change the weight in the animation curves animation curves 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.

avatar image Ridley R ♦♦ STAFF Dec 11 '17 at 06:26 PM

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

avatar image Ninjin Dec 12 '17 at 01:29 AM

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?

avatar image Ridley R ♦♦ STAFF Dec 28 '17 at 06:36 PM

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

metadata.jpg (99.9 kB)
avatar image Ninjin Dec 30 '17 at 06:53 AM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Jan 02 '18 at 07:38 PM

avatar image

Ridley R ♦♦ STAFF
1.2k 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question