Skip to reading
Visual Scripting in Depth

68. Use Raw JSON for an omitted field

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 illustrations

Figure 42. The ShowMessage data sits inside the whole script record’s nodes array.

1. Save a working version before editing structured data.

2. Select the Visual Script record and show Inspector.

3. Open Raw JSON (Advanced). Find the intended object inside nodes by its id and type.

4. Change only the required property in that node’s data dictionary. For example, ShowMessage duration can be 1.8.

5. Preserve the surrounding nodes, edges, IDs and layout fields. Press Validate and Apply JSON (Advanced).

6. Reopen the graph, verify the visible result and test it in a fresh preview.

Code example
"data": {
  "text":"The switch clicks.",
  "duration":1.8,
  "typewriter":false
}

This is an excerpt of a ShowMessage node’s data, not a complete script to paste over the record. Appendix F contains a complete small graph for reference. JSON needs matching braces and brackets, ordinary quotes and commas between entries.

Clicking a graph node does not turn the whole-record Inspector into a dedicated node JSON editor in this build. Locate the correct node in the record rather than replacing the whole record with just its data object.

Page 72 of 93Permalink
Go to page