Edit command

addShapeClip

Places a shape: a clip with no media behind it that draws one figure over the picture. It lands the way a title does, above the picture, and is placed and scaled like a still, so setClipTransform and keyframes work on it.

Fields

  • namestringrequired

    What the lane calls it: the figure's name in the interface's language, which the document cannot know.

  • startnumberrequired

    Timeline position in seconds, floored at 0.

  • abovebooloptional · default false
  • durationnumberoptional

    Seconds on the timeline; the editorial default when absent.

  • styleShapeStyleoptional

    The figure and its paint. None means ShapeStyle.

  • trackIdstringoptional

    The lane to place it on; None picks a lane as above says, as addTextClip does.

{
  "op": "addShapeClip",
  "above": true,
  "start": 2,
  "duration": 3,
  "style": {
    "kind": "arrow",
    "width": 0.2,
    "stroke": "#ffcc00",
    "strokeWidth": 0.02
  },
  "name": "Arrow"
}

The figures are listed under ShapeKind, and everything a shape can wear (fill, gradient, outline, corners, line heads, trim, shadow) under ShapeStyle.