JSON Curve Definition
From Virtual World Web Wiki
Revision as of 17:10, 4 October 2016 by Spark5 (Talk | contribs) (Created page with "The following is an example of some JSON which defines a DOMCurve. This JSON is produced by DOMCurve.ToJson() and is required by DOMObject.CreateCurveFromJson() both of which...")
The following is an example of some JSON which defines a DOMCurve. This JSON is produced by DOMCurve.ToJson() and is required by DOMObject.CreateCurveFromJson() both of which are described on the Server Scripting page.
{ "Title" : "Curve name", "Keyframes" : [ { "Title" : "Keyframe name", "Time" : 0.0, "Values" : [ { "Name" : "PropertyName", // One of these (and only one) needs to exist "IntValue" : 0, "FloatValue" : 0.0, "StringValue" : "Something", "BooleanValue" : false, "ResourceValue" : "00000000-0000-0000-0000-000000000000", // A ResourceID "ColorValue" : [255,255,255,255], // R,G,B,A "PointValue" : [0.0,0.0,0.0], // X,Y,Z }, ] }, ] }