キャプション要素

プロパティタイプ必須値の範囲説明
cuesarraytrue--キャプションテキスト、タイミング、および関連メタデータを表すキューオブジェクトの配列。
textStyleobjecttrue--The base text style applied to the caption, including font, color, shadow, and stroke settings. Contains the same properties as the Text element's textStyle object.
letterCasestringtrue-uppercase, lowercase, Title Case, noneキャプションテキストの文字ケース変換。
alignstringtrue-left, center, right, justifyキャプションのテキスト整列。
bgColorstringtrue--キャプションの背景色。
bgAlphanumbertrue-0 - 1キャプション背景の透明度レベル。1は完全不透明、0は完全透明を表します。
bgRadiusnumbertrue--ピクセル単位のキャプション背景の角の半径。
focusobjectfalse--スタイル、背景、およびアニメーション設定を含む、フォーカスされた/強調されたテキストのオプション設定。
inTweenobjectfalse--キャプションが表示されるときに適用されるツイーンアニメーション。
outTweenobjectfalse--キャプションが消えるときに適用されるツイーンアニメーション。
displayModestringtrue--「フルセンテンス」や「ワードバイワード」などのキャプションの表示モード。
lineNumnumbertrue--キャプションが分割される行数。
lineMaxWordNumnumbertrue--キャプション内の1行あたりの最大単語数。

フォーカス設定

focus オブジェクトは、キャプション内の強調されたまたはフォーカスされたテキストの設定を含みます。すべてのプロパティはオプションです。

プロパティタイプ必須値の範囲説明
styleobjectfalse--The text style applied to focused text. Contains the same properties as the Text element's textStyle object.
bgColorstringfalse--フォーカスされたテキストの背景色。
bgAlphanumberfalse-0 - 1フォーカスされたテキスト背景の透明度レベル。1は完全不透明、0は完全透明を表します。
bgRadiusnumberfalse--ピクセル単位のフォーカスされたテキスト背景の角の半径。
inTweenobjectfalse--フォーカスされたテキストが表示されるときに適用されるツイーンアニメーション。
outTweenobjectfalse--フォーカスされたテキストが消えるときに適用されるツイーンアニメーション。
letterCasestringfalse-uppercase, lowercase, Title Case, noneフォーカスされたテキストの文字ケース変換。

キャプションクue

プロパティタイプ必須値の範囲説明
idstringtrue--キューの一意の識別子。
startnumbertrue--キューの開始時間(秒単位)。
endnumbertrue--キューの終了時間(秒単位)。
contentstringtrue--キューのテキスト内容。

注: cues 配列には、少なくとも1つのキューオブジェクトが含まれている必要があります。textStyle オブジェクトと focus.style オブジェクト(提供されている場合)は、フォントファミリー、フォントサイズ、塗り(色)、整列、行の高さ、文字間隔、単語間隔、フォントウェイト、フォントスタイル、テキストシャドウ、下線、打ち消し線、太字、斜体、シャドウ有効、シャドウカラー、シャドウぼかし、シャドウアルファ、シャドウ角度、シャドウ距離、ストローク、ストローク幅を含む、テキスト要素の textStyle オブジェクトと同じプロパティを含みます。

captionElement.json

{
    "id": "057c61ba-3365-4624-856f-992e1b8a419a",
    "type": "Caption",
    "start": 1,
    "duration": 9,
    "trackIndex": 0,
    "x": 0,
    "y": 470,
    "blendMode": "normal",
    "anchorX": 0,
    "anchorY": 0,
    "rotation": 0,
    "scaleX": 1,
    "scaleY": 1,
    "alpha": 1,
    "skewX": 0,
    "skewY": 0,
    "keyframes": [],
    "cues": [
      {
        "start": 1,
        "end": 4,
        "content": "Winters come after Autumn.",
        "id": "dc0719f3-12c3-4e44-b127-e4f0b2ba4574"
      },
      {
        "start": 5,
        "end": 10,
        "content": "Often the weather goes too cold in winter.\nYou should cover yourself with warm clothes.",
        "id": "7f243bd6-1283-4957-b8b0-9488eec46f40"
      }
    ],
    "textStyle": {
      "fill": "#ffffff",
      "fontSize": 28,
      "fontFamily": "Arial",
      "align": "left",
      "lineHeight": 0,
      "letterSpacing": 0,
      "isBold": true,
      "isItalic": false,
      "shadowEnabled": true,
      "shadowColor": "#000000",
      "shadowBlur": 4,
      "shadowAlpha": 0.75,
      "shadowAngle": 1.2,
      "shadowDistance": 3,
      "stroke": "#000000",
      "strokeWidth": 2
    },
    "letterCase": "Title Case",
    "align": "center",
    "bgColor": "#a3e635",
    "bgAlpha": 0,
    "bgRadius": 10,
    "focus": {
      "style": {
        "fill": "#f2c9ff",
        "fontSize": 28,
        "fontFamily": "Arial",
        "align": "left",
        "lineHeight": 0,
        "letterSpacing": 0,
        "isBold": true,
        "isItalic": false,
        "shadowEnabled": false,
        "shadowColor": "",
        "shadowBlur": 0,
        "shadowAlpha": 1,
        "shadowAngle": 0,
        "shadowDistance": 0,
        "stroke": "#000000",
        "strokeWidth": 2
      },
      "bgColor": "#dd38f4",
      "bgAlpha": 1,
      "bgRadius": 10,
      "inTween": {
        "name": "Fade In",
        "duration": 1,
        "from": { "alpha": 0 },
        "to": { "alpha": 1 },
        "cp1": { "x": 0, "y": 0 },
        "cp2": { "x": 1, "y": 1 }
      },
      "letterCase": "Title Case"
    },
    "inTween": {
      "name": "Fade In",
      "duration": 1,
      "from": { "alpha": 0 },
      "to": { "alpha": 1 },
      "cp1": { "x": 0, "y": 0 },
      "cp2": { "x": 1, "y": 1 }
    },
    "displayMode": "Full Sentence",
    "lineNum": 2,
    "lineMaxWordNum": 10
  }