Write a project variable
write_variableCreate or replace one film-root let (a project variable). Pass name, type and value as text; an enum also needs options. Replaces the variable if that name already exists. Bind it in the film as {name} with patch_film: color="{brand}". Prefer this over rewriting a tag with patch_film. branchId null (or left out) means the current version; a version id from list_branches writes that version without switching the editor to it. Types: string, integer, number, boolean, color, enum.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| value | Yes | The value as text: 12 or 0.5 for integer and number, true or false for boolean, #ff4d00 for color, one of options for enum. | |
| options | Yes | Enum only: the allowed values. null for every other type. | |
| branchId | Yes | Version id from list_branches to write to, without switching the editor to it. null, or leaving it out, means the current version. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |