Tools reference
Text & Shapes
Control text content, style, and animators. Build and configure shape layers with groups, fills, strokes, and path operators.
Text content & style
add_text_layerAdd a new text layer with specified content, font, size, and color.
set_text_layerReplace or update the text content of an existing text layer.
get_text_documentGet the full text document of a layer: content, font, size, color, tracking, leading.
set_text_styleSet text style properties (font, size, color, tracking, leading) on the whole text layer.
set_text_style_rangeApply style changes to a character range within a text layer.
set_text_justificationSet text justification: left, center, right, or justified variants.
set_text_boxConvert a point-text layer to a box-text layer with specified width and height.
Text animators
add_text_animatorAdd a new text animator to a text layer.
set_text_animator_propertySet properties on a text animator (position, scale, opacity, color, etc.).
set_text_selectorConfigure the range or expression selector on a text animator.
list_text_animatorsList all text animators on a text layer.
remove_text_animatorRemove a text animator from a text layer.
Shape layers & groups
add_shape_layerAdd an empty shape layer to a composition.
add_shape_groupAdd a named shape group inside a shape layer.
remove_shape_groupRemove a shape group from a shape layer.
list_shape_groupsList all shape groups in a shape layer with their names and contents.
add_shape_operatorAdd a shape operator to a group: Rectangle, Ellipse, Star, Path, Merge Paths, etc.
Shape fills, strokes & operators
set_shape_fillSet the fill color and opacity of a shape group.
set_shape_strokeSet stroke color, width, opacity, line cap, and join on a shape group.
set_gradient_fillApply a gradient fill (linear or radial) to a shape group with color stops.
set_shape_verticesSet the vertex points of a path shape.
get_shape_verticesGet the vertex points of a path shape at a given time.
set_repeaterConfigure a Repeater operator: copies, offset, transform.
set_trim_pathsConfigure a Trim Paths operator: start, end, offset, and trim mode.
set_merge_pathsSet the mode of a Merge Paths operator: Add, Subtract, Intersect, Exclude, etc.