Create shape from SVG
create_shape_from_svgConvert SVG path data or full SVG markup into editable After Effects shape-layer paths, importing supported elements and styles into a new or existing shape layer.
Instructions
Convert SVG into editable shape-layer paths. 'svg' may be a path 'd' string (M L H V C S Q T A Z, absolute and relative; arcs are converted to beziers) or a full snippet: every , , , , , , is imported (one group per element, subpaths as separate paths in that group), with fill/stroke/stroke-width/fill-rule/opacity from attributes or style (inherited from /) and transform attributes applied. , , text, images and gradients are skipped (gradient fills become gray). Creates a new shape layer unless 'layer' is given. By default the artwork is centered on the layer origin (new layer = comp center); center=false keeps SVG coordinates (new layer placed at [0,0] so SVG units = comp pixels).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"svg": "<svg>"
},
"name": "create_shape_from_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | SVG path data ('M10 10 L 90 10 ...') or SVG markup ('<svg ...><path d=.../></svg>'). | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| fill | No | Override fill color for all elements (false/'none' = no fill). Path-data input defaults to white. | |
| name | No | Name of the new layer (default 'SVG Shape'). | |
| layer | No | Existing shape layer to add to (default: create a new one). | |
| scale | No | Scale factor for SVG units (default 1). | |
| center | No | Center the artwork's bounding box on the group origin (default true). | |
| stroke | No | Override stroke color for all elements. | |
| fitSize | No | Scale uniformly so the longest side of the artwork is this many px (overrides scale). | |
| fillRule | No | Override fill rule. | |
| position | No | Position of the created group (layer coordinates relative to the layer origin). | |
| groupName | No | Name of the created group (default 'SVG'). | |
| groupPath | No | Group to add into (existing layer only). | |
| strokeWidth | No | Override stroke width px. | |
| currentColor | No | Color used for 'currentColor' (default white), e.g. for icon sets. |