Skip to main content

Sleep

Category: Control Sleep block screenshot

Pauses for a chosen number of milliseconds and can optionally sync pending actions and buffered file writes first. durationMs is truncated to whole milliseconds and may be 0 for a pure sync point. Defaults: commitPendingActionsBeforeSleep=true, flushFileBuffersBeforeSleep=true. When enabled, pending Premiere actions are committed before waiting and buffered file writes are flushed before waiting. Waits for durationMs milliseconds after truncating the value to a whole number. durationMs = 0 is allowed and is useful when the block should act only as a synchronization point. When commitPendingActionsBeforeSleep=true, the runtime commits currently queued Premiere actions before waiting. When flushFileBuffersBeforeSleep=true, buffered text and delimited-spreadsheet writes are flushed to disk before waiting. The block does not inspect host state; it only commits/flushed-as-requested and then waits for the chosen duration. Prefer explicit completion-aware blocks such as waitForCompletion on render/export operations when those already model the required host state.

Inputs

InputRequiredValue KindTypesEnum Values
durationMsyesexpressionnumber
commitPendingActionsBeforeSleepnoexpressionboolean
flushFileBuffersBeforeSleepnoexpressionboolean

Notes

  • Waits for durationMs milliseconds after truncating the value to a whole number.
  • durationMs = 0 is allowed and is useful when the block should act only as a synchronization point.
  • Defaults:
    • commitPendingActionsBeforeSleep = true
    • flushFileBuffersBeforeSleep = true
  • When commitPendingActionsBeforeSleep=true, the runtime commits currently queued Premiere actions before waiting.
  • When flushFileBuffersBeforeSleep=true, buffered text and delimited-spreadsheet writes are flushed to disk before waiting.
  • The block does not inspect host state; it only commits/flushed-as-requested and then waits for the chosen duration.
  • Prefer explicit completion-aware blocks such as waitForCompletion on render/export operations when those already model the required host state.

Examples

Flush Buffered File Write With Sleep

Writes a text file into the runtime buffer, then uses sleep as a zero-delay sync point to flush buffered file writes before continuing.

kind: Pattern · format: runtime-dsl · validation: Schema only

Topics: files, synchronization

Source: patterns/ex-files-flush-buffered-write-with-sleep.json

Download JSON

Export Transcript And Reference Frame

Creates a temporary sequence from the first selected project item, waits briefly, exports transcript JSON if available, and writes one reference frame for visual verification.

kind: Recipe · format: runtime-dsl · validation: Schema only

Topics: semantic probing, transcript, frame export, visual verification

Source: recipes/ex-semantic-export-transcript-and-reference-frame.json

Download JSON

Prepare Selected Clip Transcript After Sequence Placement

Creates a temporary sequence from the first selected project item, waits briefly, then exports the clip transcript JSON to a deterministic file path.

kind: Recipe · format: runtime-dsl · validation: Schema only

Topics: semantic probing, transcript, sequence placement, transcript readiness

Source: recipes/ex-semantic-export-transcript-after-sequence-placement.json

Download JSON