Basic Element

In projectData, the view, audio, effect, and transition are all arrays of element.

Each element contains the following common parameters:

PropTypeRequiredExampleValue RangeDescription
idstringtrueb895d96c-e974-4d3f-af6d-ddc464fd4997-A unique identifier for the element. It is recommended to use a UUID.
typestringtrue-Video | Image | Gif | Text | Caption | Shape | Group |Transition | Audio | Filter | Tone | LutThe type of the element. This determines how the element is rendered.
startnumbertrue->= 0The time at which the element appears on the project timeline, in seconds.
durationnumbertrue-> 0The total duration of the element in the timeline, measured in seconds.
trackIndexnumbertrue->= 0The index of the track in which the element is placed within the timeline.
videoElement.json
1 2 { 3 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0", 4 "type": "Image", 5 "start": 0, 6 "duration": 5, 7 "trackIndex": 0, 8 "x": -570.0335392757963, 9 "y": -170.90659033307685, 10 "blendMode": "normal", 11 "anchorX": 1302, 12 "anchorY": 2312, 13 "rotation": 0, 14 "scaleX": 0.23356401384083045, 15 "scaleY": 0.23356401384083045, 16 "alpha": 1, 17 "skewX": 0, 18 "skewY": 0, 19 "keyframes": [], 20 "externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg", 21 "ext": "jpeg" 22 } 23