From f950850f18cfe014717a41fec927c300723eb11b Mon Sep 17 00:00:00 2001 From: spacedevin Date: Sat, 31 Oct 2026 18:34:42 -0700 Subject: [PATCH] feat(runtime): add editSequence and getSequence Plugins can cut, blend and mix a sequence (Edit mode) and read it by track. --- src/runtime/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/runtime/main.ts b/src/runtime/main.ts index 9a892cc..ef548da 100644 --- a/src/runtime/main.ts +++ b/src/runtime/main.ts @@ -244,6 +244,13 @@ export function createMainApi(rpc: RpcClient = createRpcClient()) { setShaderFill: (opts?: PopCraftCommandArgs) => rpc.call('setShaderFill', opts || {}), createComposition: (opts?: PopCraftCommandArgs) => rpc.call('createComposition', opts || {}), editComposition: (opts?: PopCraftCommandArgs) => rpc.call('editComposition', opts || {}), + /** + * Sequences (Edit mode): a composition as a multi-track timeline — V1 main scenes, V2… layered scenes / videos / stills, + * A1… audio. `editSequence({ id, op })` cuts, trims, slips, rolls, slides, places, stretches, blends, mixes and ducks + * (docs/plugins/methods.md); `getSequence({ id? })` reads it by track. + */ + editSequence: (opts?: PopCraftCommandArgs) => rpc.call('editSequence', opts || {}), + getSequence: (opts?: PopCraftCommandArgs) => rpc.call('getSequence', opts || {}), editStateMachine: (opts?: PopCraftCommandArgs) => rpc.call('editStateMachine', opts || {}), getStateMachine: (opts?: PopCraftCommandArgs) => rpc.call('getStateMachine', opts || {}), applyMotionPreset: (opts?: PopCraftCommandArgs) => rpc.call('applyMotionPreset', opts || {}),