Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I go about fixing this?

Asked by 8 years ago

So I am trying to save NumberSequenceKeypoint values as strings using JSONEncode and then using this code to load it back:

NumberSequence.new(http:JSONDecode( 'JSON Goes Here' ))

with JSON:

JSON = '[{"Envelope":0,"Time":0,"Value":0},{"Envelope":0,"Time":1,"Value":0.88888883590698242}]'

with error:

  • NumberSequence ctor: expected 'NumberSequenceKeypoint' at index 1

If anyone can help, that would be great.

Sincerely, Darkness246810

Answer this question