Film kit command

state.inspect

Inspect Editor State

Reads the editor state: active sequence, playhead, selections (clips, captions, project items, edit points), targeting, In/Out and toggles like snapping and linked selection.

Kit
Film 0.1.0 (.kfilm)
Changes the document
no

Parameters

None.

Call through film_run

text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "state.inspect" }]
}

The required parameters, with placeholders for their types: not a tested example. film_run answers the step’s result in completed[i].result.

Result

Result of state.inspect
NameTypeRequiredDescription
active_sequenceintegerno
caption_selectionany[]no
clip_mixer_modesobjectno
copy_paste_sequence_markersbooleanno
default_audio_transitionstringno
default_video_transitionstringno
edit_pointsany[]no
findanyno
graphic_layersany[]no
hidden_marker_colorsany[]no
linked_selectionbooleanno
multicam_audio_follows_videobooleanno
multicam_viewobjectno
open_sequencesinteger[]no
playheadsobjectno
project_selectionany[]no
ripple_sequence_markersbooleanno
selected_maskanyno
selectionany[]no
selection_follows_playheadbooleanno
sequences_as_clipsbooleanno
show_through_editsbooleanno
snappingbooleanno
source_itemanyno
source_playheadintegerno
targetingobjectno
timeline_viewsobjectno
trim_shiftobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "active_sequence": {
      "type": "integer"
    },
    "caption_selection": {
      "items": {},
      "type": "array"
    },
    "clip_mixer_modes": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "copy_paste_sequence_markers": {
      "type": "boolean"
    },
    "default_audio_transition": {
      "type": "string"
    },
    "default_video_transition": {
      "type": "string"
    },
    "edit_points": {
      "items": {},
      "type": "array"
    },
    "find": {},
    "graphic_layers": {
      "items": {},
      "type": "array"
    },
    "hidden_marker_colors": {
      "items": {},
      "type": "array"
    },
    "linked_selection": {
      "type": "boolean"
    },
    "multicam_audio_follows_video": {
      "type": "boolean"
    },
    "multicam_view": {
      "additionalProperties": true,
      "properties": {
        "autoQuality": {
          "type": "boolean"
        },
        "layout": {},
        "page": {
          "type": "integer"
        },
        "showPreview": {
          "type": "boolean"
        },
        "topDown": {
          "type": "boolean"
        },
        "transmit": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "open_sequences": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "playheads": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "project_selection": {
      "items": {},
      "type": "array"
    },
    "ripple_sequence_markers": {
      "type": "boolean"
    },
    "selected_mask": {},
    "selection": {
      "items": {},
      "type": "array"
    },
    "selection_follows_playhead": {
      "type": "boolean"
    },
    "sequences_as_clips": {
      "type": "boolean"
    },
    "show_through_edits": {
      "type": "boolean"
    },
    "snapping": {
      "type": "boolean"
    },
    "source_item": {},
    "source_playhead": {
      "type": "integer"
    },
    "targeting": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "timeline_views": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "trim_shift": {
      "additionalProperties": true,
      "properties": {
        "inShift": {
          "type": "integer"
        },
        "outShift": {
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.