Cotton code
279 lines · 6.2 KB · JSONRaw
{  "format_version": 1,  "id": "story_scene",  "name": "Scene",  "plural": "Scenes",  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "story",      "name": "Story",      "type": "link",      "link_to": "story_story",      "required": true    },    {      "key": "position",      "name": "Order",      "type": "number"    },    {      "key": "setting",      "name": "Inside or out",      "type": "choice",      "default": "INT.",      "choices": [        "INT.",        "EXT.",        "INT./EXT."      ],      "labels": {        "INT.": "Inside",        "EXT.": "Outside",        "INT./EXT.": "Inside and out"      }    },    {      "key": "place",      "name": "Place",      "type": "link",      "link_to": "story_place"    },    {      "key": "time",      "name": "Time",      "type": "text",      "placeholder": "DAY or NIGHT, or any time you like"    },    {      "key": "heading",      "name": "Scene heading",      "type": "text",      "placeholder": "INT. KITCHEN - NIGHT"    },    {      "key": "summary",      "name": "What happens",      "type": "text",      "placeholder": "One line: what happens in this scene"    },    {      "key": "day",      "name": "Story day",      "type": "number"    },    {      "key": "body",      "name": "Scene",      "type": "longtext",      "placeholder": "Write what we see. Put a name on its own line, and what they say under it."    },    {      "key": "status",      "name": "Status",      "type": "choice",      "default": "draft",      "choices": [        "idea",        "draft",        "done"      ],      "labels": {        "idea": "Idea",        "draft": "Draft",        "done": "Done"      }    },    {      "key": "words",      "name": "Words",      "type": "number",      "readonly": true    },    {      "key": "pages",      "name": "Pages",      "type": "number",      "readonly": true,      "decimals": 3    },    {      "key": "minutes",      "name": "Minutes",      "type": "number",      "readonly": true,      "decimals": 1    },    {      "key": "speakers",      "name": "Who speaks",      "type": "longtext",      "readonly": true    },    {      "key": "question",      "name": "Open question",      "type": "text",      "placeholder": "What does this scene still have to answer?"    },    {      "key": "answer",      "name": "Grew from",      "type": "link",      "link_to": "story_answer"    },    {      "key": "lines_sum",      "name": "Lines kept for",      "type": "text",      "readonly": true    }  ],  "seal": {    "clear": [      "story",      "position",      "setting",      "place",      "status",      "words",      "pages",      "minutes",      "answer",      "day"    ],    "blind": [      "time",      "heading",      "summary",      "speakers",      "question"    ],    "blind_bytes": {      "speakers": 512    }  },  "title": "heading",  "date": null,  "project": null,  "order": "position",  "reorder": true,  "slip": {    "title": "heading",    "subtitle": "summary",    "trailing": "pages",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "card": {    "face": "scene.card",    "offers": [      "scene.card",      "scene.chat"    ],    "fields": [      {        "slot": "number",        "column": "position"      },      {        "slot": "title",        "column": "heading"      },      {        "slot": "subtitle",        "column": "summary"      },      {        "slot": "body",        "column": "body"      },      {        "slot": "state",        "column": "status",        "only": [          "idea",          "done"        ]      }    ]  },  "page": [    {      "heading": null,      "columns": [        "heading",        "setting",        "place",        "time",        "summary",        "day",        "status"      ]    },    {      "heading": "Scene",      "columns": [        "body"      ]    }  ],  "sort": {    "column": "position",    "descending": false  },  "create": {    "label": "New scene",    "method": "story.scene.new"  },  "empty": {    "title": "No scenes yet",    "message": "Tap plus to write your first scene. Just start typing: we will lay it out for you."  },  "deletion": {    "bin": true  },  "links": [    {      "label": "Deleted",      "table": "bin",      "where": {        "table": "story_scene"      }    }  ],  "commands": [    {      "id": "write",      "label": "Write",      "kind": "update",      "method": "story.write",      "bindings": {        "id": "$id"      },      "object": "slip"    },    {      "id": "delete",      "label": "Remove",      "kind": "delete",      "verb": "delete_record",      "data": {        "table": "story_scene"      },      "confirm": "It can come back from Deleted, and Undo brings it back now.",      "bindings": {        "id": "$id"      },      "receipt": "Removed",      "does": "destroys",      "object": "bin"    }  ],  "instructions": "A scene is one stretch of a story in one place at one time. heading is its scene heading as written (INT. KITCHEN - NIGHT); setting (INT., EXT., INT./EXT.), place (a story_place) and time (DAY, NIGHT or free text) say the same thing in parts, and the core keeps them in step: write either and the other follows. position orders the scenes in their story (1, 2, 3...); to move a scene, change its position. summary is one line on what happens. status is idea, draft or done. A scene body is plain Fountain text without the heading line: a line of action is just a sentence; a character's name on its own line (in capitals for English, or a name the story already knows in any script) starts their speech, and the lines under it are what they say; an aside in brackets on its own line under the name, like (quietly), is a parenthetical; a line ending in TO: such as CUT TO: is a transition; a blank line separates elements. Never write the scene heading into the body: it lives in heading. words, pages, minutes and speakers are worked out from the body, never written. Write a body with story_scene_write so the core re-reads it, keeps those figures and makes any new characters and places."}