setAspectRatio
Set the export shape to 16:9, 9:16, 1:1, 4:5, auto, or a source clip ratio so videos fit X, YouTube, stories, shorts, or square feeds. Annotations keep their place and shape.
Instructions
Set the shape of the exported video: 16:9 for X, YouTube or a slide, 9:16 for a vertical story or short, 1:1 or 4:5 for a square feed, auto to follow the recording, or one of the clips' own shapes (getCurrentDocument's settingsContext.originalAspectRatios). Annotations on the frame keep their place and shape. The same as setEditorSettings with aspectRatio alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. | |
| aspectRatio | Yes | "auto", one of 16:9, 9:16, 1:1, 4:3, 4:5, 16:10, 10:16, or a token from getCurrentDocument's settingsContext.originalAspectRatios. |