Cotton code
80 lines · 2.3 KB · JSONRaw
{  "views": [    {      "id": "scripts",      "label": "Scripts",      "visibility": "owner",      "is_default": true,      "read": {        "table": "screenplay",        "empty": {          "line": "empty_views.screenplays.scripts",          "table": true        }      }    },    {      "id": "scenes",      "label": "Scenes",      "visibility": "owner",      "is_default": false,      "read": {        "table": "screenplay_scene",        "empty": {          "line": "empty_views.screenplays.scenes",          "table": true        }      }    },    {      "id": "characters",      "label": "Characters",      "visibility": "owner",      "is_default": false,      "read": {        "table": "screenplay_character",        "empty": {          "line": "empty_views.screenplays.characters",          "table": true        }      }    }  ],  "id": "screenplays",  "name": "Screenplays",  "purpose": "Scripts written in Fountain, scene by scene, and the people in them.",  "picture": "tool-screenplays",  "card_stock": "cream",  "tables": [    "screenplay",    "screenplay_scene",    "screenplay_character",    "screenplay_place",    "screenplay_draft",    "screenplay_document",    "vault_key"  ],  "contributes": [    {      "table": "screenplay",      "column": {        "key": "status",        "name": "Status",        "type": "choice",        "choices": [          "idea",          "writing",          "rewriting",          "finished"        ]      }    }  ],  "instructions": "Screenplays keeps the owner's scripts. A screenplay is a title, a logline and its status (own_screenplays__status: idea, writing, rewriting, finished); its scenes are its ordered list, each a heading in its own field (INT. KITCHEN - NIGHT) and a body in Fountain, the source of truth; the page count, the scene numbers and each scene's pages are worked out from the Fountain, never written. A character is a name in the script with a note on them. Drafts are frozen copies, places and documents the writer's notes. Use the screenplay tools (add_scene, update_scene, move_scene, upsert_screenplay_character, mark_screenplay_draft) to write, and never rewrite a scene's Fountain the owner did not ask you to.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}