Film kit command

prefs.get

Get Preferences

Reads preferences: one `key` (e.g. audio.scrubAudio, trim.largeTrimOffset) or all.

Kit
Film 0.1.0 (.kfilm)
Changes the document
no

Parameters

Parameters of prefs.get
NameTypeRequiredDescription
keystringno

Call through film_run

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

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

Result

Result of prefs.get
NameTypeRequiredDescription
keysstring[]no
valuesobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "keys": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "values": {
      "additionalProperties": true,
      "properties": {
        "appearance": {
          "additionalProperties": true,
          "properties": {
            "accessibleContrast": {
              "type": "boolean"
            },
            "colorTheme": {
              "type": "string"
            },
            "highlightColor": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "audio": {
          "additionalProperties": true,
          "properties": {
            "alwaysOverrideAudioTags": {
              "type": "boolean"
            },
            "ambienceTargetLufs": {
              "type": "number"
            },
            "autoTagAudioTypes": {
              "type": "boolean"
            },
            "automatchTime": {
              "type": "number"
            },
            "dialogueTargetLufs": {
              "type": "number"
            },
            "editInAuditionLocation": {
              "type": "string"
            },
            "generateWaveformsOnImport": {
              "type": "boolean"
            },
            "largeVolumeAdjustment": {
              "type": "number"
            },
            "linearKeyframeThinning": {
              "type": "boolean"
            },
            "maintainPitchShuttling": {
              "type": "boolean"
            },
            "minimumTimeIntervalThinning": {
              "type": "boolean"
            },
            "minimumTimeMs": {
              "type": "integer"
            },
            "mixdownType": {
              "type": "string"
            },
            "multithreadedWaveforms": {
              "type": "boolean"
            },
            "musicTargetLufs": {
              "type": "number"
            },
            "muteInputDuringRecording": {
              "type": "boolean"
            },
            "renderAudioWithVideo": {
              "type": "boolean"
            },
            "scrubAudio": {
              "type": "boolean"
            },
            "sfxTargetLufs": {
              "type": "number"
            },
            "sumToMonoInSource": {
              "type": "boolean"
            },
            "switchToTouchAfterWrite": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "audioHardware": {
          "additionalProperties": true,
          "properties": {
            "bufferSize": {
              "type": "integer"
            },
            "defaultInput": {
              "type": "string"
            },
            "defaultOutput": {
              "type": "string"
            },
            "deviceClass": {
              "type": "string"
            },
            "forceDocumentRate": {
              "type": "boolean"
            },
            "mapLeft": {
              "type": "integer"
            },
            "mapRight": {
              "type": "integer"
            },
            "sampleRate": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "audioMixing": {
          "additionalProperties": true,
          "properties": {
            "userPresets": {
              "items": {},
              "type": "array"
            }
          },
          "type": "object"
        },
        "autoSave": {
          "additionalProperties": true,
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "intervalMinutes": {
              "type": "integer"
            },
            "maxVersions": {
              "type": "integer"
            },
            "recoveryIntervalSeconds": {
              "type": "integer"
            },
            "recoveryJournal": {
              "type": "boolean"
            },
            "saveCurrentProject": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "color": {
          "additionalProperties": true,
          "properties": {
            "displayColorManagement": {
              "type": "boolean"
            },
            "extendedDynamicRange": {
              "type": "boolean"
            },
            "hdrGraphicsWhite": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "general": {
          "additionalProperties": true,
          "properties": {
            "atStartup": {
              "type": "string"
            },
            "binsCmdDoubleClick": {
              "type": "string"
            },
            "binsDoubleClick": {
              "type": "string"
            },
            "binsOptDoubleClick": {
              "type": "string"
            },
            "interfaceLanguage": {
              "type": "string"
            },
            "projectsDoubleClick": {
              "type": "string"
            },
            "projectsOptDoubleClick": {
              "type": "string"
            },
            "recentProjects": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "showCompatibilityIssues": {
              "type": "boolean"
            },
            "showEventIndicator": {
              "type": "boolean"
            },
            "showMaskTrackerPreview": {
              "type": "boolean"
            },
            "showProjectBinInTab": {
              "type": "boolean"
            },
            "showProjectLoadErrors": {
              "type": "boolean"
            },
            "showRichToolTips": {
              "type": "boolean"
            },
            "showToolTips": {
              "type": "boolean"
            },
            "showWorkspaceResetWarning": {
              "type": "boolean"
            },
            "whenOpeningProject": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "graphics": {
          "additionalProperties": true,
          "properties": {
            "backgroundFill": {
              "type": "string"
            },
            "captionFont": {
              "type": "string"
            },
            "captionMonospaceOnly": {
              "type": "boolean"
            },
            "cea708Wide": {
              "type": "boolean"
            },
            "defaultFont": {
              "type": "string"
            },
            "emojiFont": {
              "type": "string"
            },
            "hindiDigits": {
              "type": "boolean"
            },
            "ligatures": {
              "type": "boolean"
            },
            "missingFontReplacement": {
              "type": "string"
            },
            "paragraphDirection": {
              "type": "string"
            },
            "shapeLineCap": {
              "type": "string"
            },
            "shapeLineJoin": {
              "type": "string"
            },
            "shapeMiterLimit": {
              "type": "number"
            },
            "smartQuotes": {
              "type": "boolean"
            },
            "textLineCap": {
              "type": "string"
            },
            "textLineJoin": {
              "type": "string"
            },
            "textMiterLimit": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "guides": {
          "additionalProperties": true,
          "properties": {
            "templates": {
              "items": {},
              "type": "array"
            }
          },
          "type": "object"
        },
        "labels": {
          "additionalProperties": true,
          "properties": {
            "colors": {
              "additionalProperties": true,
              "properties": {
                "blue": {},
                "brown": {},
                "caribbean": {},
                "cerulean": {},
                "forest": {},
                "green": {},
                "iris": {},
                "lavender": {},
                "magenta": {},
                "mango": {},
                "purple": {},
                "rose": {},
                "tan": {},
                "teal": {},
                "violet": {},
                "yellow": {}
              },
              "type": "object"
            },
            "defaults": {
              "additionalProperties": true,
              "properties": {
                "audio": {
                  "type": "string"
                },
                "bin": {
                  "type": "string"
                },
                "captions": {
                  "type": "string"
                },
                "dynamicLink": {
                  "type": "string"
                },
                "movie": {
                  "type": "string"
                },
                "sequence": {
                  "type": "string"
                },
                "still": {
                  "type": "string"
                },
                "video": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "media": {
          "additionalProperties": true,
          "properties": {
            "allowDuplicateMedia": {
              "type": "boolean"
            },
            "autoHideDependentClips": {
              "type": "boolean"
            },
            "createFolderForImportedProjects": {
              "type": "boolean"
            },
            "defaultMediaScaling": {
              "type": "string"
            },
            "enableProxies": {
              "type": "boolean"
            },
            "enableXmpLinking": {
              "type": "boolean"
            },
            "frameCount": {
              "type": "string"
            },
            "growingRefreshSeconds": {
              "type": "integer"
            },
            "hardwareDecoding": {
              "type": "boolean"
            },
            "importImageSequences": {
              "type": "boolean"
            },
            "includeCaptionsOnImport": {
              "type": "boolean"
            },
            "indeterminateTimebase": {
              "type": "string"
            },
            "proresHardwareEncoding": {
              "type": "boolean"
            },
            "refreshGrowingFiles": {
              "type": "boolean"
            },
            "resumeGrowingPlayback": {
              "type": "boolean"
            },
            "timecode": {
              "type": "string"
            },
            "validateContentCredentials": {
              "type": "boolean"
            },
            "writeClipMarkersToXmp": {
              "type": "boolean"
            },
            "writeXmpId": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "mediaAnalysis": {
          "additionalProperties": true,
          "properties": {
            "analyzeImportedMedia": {
              "type": "boolean"
            },
            "autoTranscribe": {
              "type": "boolean"
            },
            "autoTranscribeScope": {
              "type": "string"
            },
            "cacheResults": {
              "type": "string"
            },
            "defaultLanguage": {
              "type": "string"
            },
            "languageAutoDetect": {
              "type": "boolean"
            },
            "speakerLabeling": {
              "type": "string"
            },
            "whisperModel": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "mediaBrowser": {
          "additionalProperties": true,
          "properties": {
            "columns": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "favorites": {
              "items": {},
              "type": "array"
            },
            "fileTypes": {
              "type": "string"
            },
            "hoverScrub": {
              "type": "boolean"
            },
            "importAsImageSequence": {
              "type": "boolean"
            },
            "lastDir": {
              "type": "string"
            },
            "recent": {
              "items": {},
              "type": "array"
            },
            "thumbnailSize": {
              "type": "number"
            },
            "view": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "mediaCache": {
          "additionalProperties": true,
          "properties": {
            "databaseLocation": {
              "type": "string"
            },
            "location": {
              "type": "string"
            },
            "management": {
              "type": "string"
            },
            "maxSizeGb": {
              "type": "integer"
            },
            "olderThanDays": {
              "type": "integer"
            },
            "saveNextToMedia": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "memory": {
          "additionalProperties": true,
          "properties": {
            "frameCacheMb": {
              "type": "integer"
            },
            "ramReservedGb": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "playback": {
          "additionalProperties": true,
          "properties": {
            "disableVideoInBackground": {
              "type": "boolean"
            },
            "draftDecode": {
              "type": "boolean"
            },
            "enableTransmit": {
              "type": "boolean"
            },
            "hardwareDecoding": {
              "type": "string"
            },
            "pauseEncoderQueue": {
              "type": "boolean"
            },
            "postrollSeconds": {
              "type": "number"
            },
            "prerollSeconds": {
              "type": "number"
            },
            "stepManyFrames": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "plugins": {
          "additionalProperties": true,
          "properties": {
            "developerMode": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "projectPanel": {
          "additionalProperties": true,
          "properties": {
            "currentPreset": {},
            "freeform": {
              "additionalProperties": true,
              "properties": {
                "cardSize": {
                  "type": "number"
                },
                "grid": {
                  "type": "number"
                },
                "showDurations": {
                  "type": "boolean"
                },
                "showNames": {
                  "type": "boolean"
                },
                "snap": {
                  "type": "boolean"
                }
              },
              "type": "object"
            },
            "hoverScrub": {
              "type": "boolean"
            },
            "presets": {
              "items": {},
              "type": "array"
            },
            "previewArea": {
              "type": "boolean"
            },
            "thumbnailControlsAllDevices": {
              "type": "boolean"
            },
            "thumbnails": {
              "type": "boolean"
            },
            "thumbnailsShowEffects": {
              "type": "boolean"
            },
            "view": {
              "additionalProperties": true,
              "properties": {
                "columns": {
                  "items": {},
                  "type": "array"
                },
                "fontSize": {
                  "type": "string"
                },
                "iconSize": {
                  "type": "number"
                },
                "iconSort": {},
                "mode": {
                  "type": "string"
                },
                "sort": {}
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "timeline": {
          "additionalProperties": true,
          "properties": {
            "addTracksAutomatically": {
              "type": "boolean"
            },
            "audioTransitionDuration": {
              "type": "number"
            },
            "audioTransitionUnit": {
              "type": "string"
            },
            "autoScroll": {
              "type": "string"
            },
            "clipMismatchWarning": {
              "type": "boolean"
            },
            "focusTimelineOnEdit": {
              "type": "boolean"
            },
            "matchFrameSetsIn": {
              "type": "boolean"
            },
            "monoMediaTracks": {
              "type": "string"
            },
            "mouseScrolling": {
              "type": "string"
            },
            "multichannelMonoMediaTracks": {
              "type": "string"
            },
            "outOfSyncUnlinked": {
              "type": "boolean"
            },
            "playAfterRendering": {
              "type": "boolean"
            },
            "restoreOpenSequences": {
              "type": "boolean"
            },
            "returnToBeginning": {
              "type": "boolean"
            },
            "snapPlayhead": {
              "type": "boolean"
            },
            "stereoMediaTracks": {
              "type": "string"
            },
            "stillImageDuration": {
              "type": "number"
            },
            "stillImageUnit": {
              "type": "string"
            },
            "surroundMediaTracks": {
              "type": "string"
            },
            "videoTransitionDuration": {
              "type": "number"
            },
            "videoTransitionUnit": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "trim": {
          "additionalProperties": true,
          "properties": {
            "dynamicRippleUpdates": {
              "type": "boolean"
            },
            "largeTrimOffset": {
              "type": "integer"
            },
            "largeTrimOffsetAudio": {
              "type": "integer"
            },
            "playheadDeterminesLoop": {
              "type": "boolean"
            },
            "rippleAddsEdits": {
              "type": "boolean"
            },
            "selectionToolRollRipple": {
              "type": "boolean"
            },
            "shiftOverlappingClips": {
              "type": "boolean"
            },
            "toolChangesTrimType": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "version": {
          "type": "integer"
        },
        "voiceOver": {
          "additionalProperties": true,
          "properties": {
            "countdownSoundCues": {
              "type": "boolean"
            },
            "inputChannel": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "postrollSeconds": {
              "type": "number"
            },
            "prerollSeconds": {
              "type": "number"
            },
            "source": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string"
    }
  },
  "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.