Skip to reading
The Cutscene Designer

7. Understand the small amount of JSON you need

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

Many traditional cutscene actions use the Action Data box for their settings. Advanced camera, rendering and exposed-function actions also have dedicated fields. You do not need to write a program to edit a simple JSON action.

Code example
{
  "type": "SetCamera",
  "position": [0, 4.5, 9],
  "target": [0, 1, -0.3],
  "fov": 42
}
Source table from 7. Understand the small amount of JSON you need, page 11
PieceRead it as
"type": "SetCamera"The action to perform. Keep the spelling.
"position": [0, 4.5, 9]A three-number X, Y, Z position.
"target": [0, 1, -0.3]The point the camera looks toward.
"fov": 42The perspective field of view, in degrees.
true / falseBoolean values; no quotation marks.
CommaSeparates entries; do not add one after the final entry.

Keep the outer braces. Put double quotation marks around field names and text values. Numbers stay unquoted. Use a decimal point, rather than a decimal comma, inside the data.

A valid JSON object is not automatically a valid shot. A misspelled character ID can still look perfectly correct as JSON. Apply the event, validate the project and test the result.

Page 11 of 78Permalink
Go to page