PathPrep for After Effects - Convert, Bake, Select, Copy Shape Paths Fast
PathPrep for After Effects
PathPrep is a dockable After Effects ScriptUI panel that streamlines your shape layer workflow.
Convert parametric shapes to Bezier paths, bake transforms, select all paths, and copy clean vectors — all in just a few clicks.
🔹 Convert multiple parametric shapes to editable Bezier paths
- Because “Convert To Bezier Path” shouldn’t mean clicking all day.
Select a shape layer, optionally choose which shapes to convert, and hit “Convert to Bezier Paths.” It’s a huge time-saver when you want to convert a lot of shapes, because After Effects’ regular menu command “Convert to Bezier Path” can only be used on one parametric shape at a time.
🔹 Apply Transforms
- Because transforms should help, not hinder.
Bake Anchor, Position, Scale and Rotation into Bezier Paths, with options to process all paths on the layer, or just user-selected ones, and options for Anchor point placement. Setting the anchor point to the shape’s bounding box center makes your transforms behave naturally - just like native AE behavior, ensuring post-bake editing stays intuitive.
🔹 Select all path properties at once
- Because finding all your paths shouldn’t feel like archaeology.
Quickly highlight every Bezier path in a shape layer and optionally add keyframes to them. Ideal for batch editing tasks. Saves heaps of time compared to tedious and time-consuming twirling / opening of multiple collapsed groups.
🔹 Copy Paths to Clipboard
- Because Illustrator wants your paths not your keyframes.
Copy raw vector data from After Effects shape paths, even if they’re animated, for pasting into Illustrator or other vector software.
PathPrep is perfect for motion designers, animators, and template creators who work extensively with shape layers. Speed up your workflow and stay focused on the creative work.
⸻
Compatibility
Tested with Adobe After Effects CC 2025.
Likely compatible with versions back to CS6 — PathPrep uses stable core scripting features that haven’t changed since 2012.
⸻
Installation
1. Copy the script file (PathPrep_v1.0.jsxbin ) to your After Effects Scripts/ScriptUI Panels directory:
• macOS:
~/Applications/Adobe After Effects [version]/Scripts/ScriptUI Panels/
• Windows:
C:\Program Files\Adobe\Adobe After Effects [version]\Support Files\Scripts\ScriptUI Panels\
2. Launch or restart After Effects.
3. Open the panel via:
Window > PathPrep_v1.0.jsxbin
⸻
How to Use
Open the panel via Window > PathPrep.jsxbin
The panel is resizable and dockable.
To get started, select a single shape layer. Only one shape layer can be processed at a time.
Note:
1. Even though the outward appearance of your shape layer will be unchanged, PathPrep's conversions and transformations can significantly modify your shape layer's underlying properties.
2. If you want to keep the original setup, duplicate your layer or composition.
3. Check for keyframes - the tool will skip problematic properties, but it's good to know what won't be processed.
The panel contains four collapsible sections:
🔁 1. Convert Parametric Shapes to Bezier Paths
Automatically converts the following parametric shapes to editable Bezier paths:
• Rectangles
• Ellipses
• Polystars (Stars and Polygons)
You can select which of these shape types get converted. You can also choose to convert all parametric paths on the layer, or just ones that you have selected yourself. When using the ‘Convert Selected’ option, be sure to select the parametric shapes directly — not the shape group or transform group.
Click "Convert to Bezier Paths" and the script will cleanly replace parametric shapes with Bezier equivalents. Each original parametric shape is removed after conversion, and its replacement is inserted at the same index in the shape group for consistency. An alert message will tell you the number of shapes that were converted. Converted shapes will no longer retain parametric properties (e.g., size sliders).
PathPrep uses its own fast transform math functions for converting all shapes. These functions produce identical results to After Effects' native conversion methods, except that PathPrep's conversion of Star Inner Roundness may show minor mathematical differences at extreme roundness settings.
🍞 2. Apply Transforms
Bakes Anchor, Position, Scale and Rotation into Bezier Paths. You’ll need to convert parametric shapes to Bezier paths first if you want to apply transforms to them.
• You can choose to apply transforms to all Bezier paths on the layer, or just ones that you have selected yourself. In "Apply to all" mode, PathPrep will work through all levels of groups and subgroups, applying each transform in the correct order - so even deeply nested paths get accurately transformed. When using the ‘Apply to Selected’ option, be sure to select the Path property directly — not the Path Group or Transform Group. In "Apply to selected" mode, the only transforms that will be applied are the ones directly associated with the selected paths.
• You can also choose whether to set Anchors to the centers of each shape's bounding box (best for intuitive editing), or to origin (0,0) - the center of the comp.
• Gradients are scaled proportionally with transforms, except in the case of paths which have non-uniform scale (different X-Scale and Y-Scale values).
• Stroke width transformation is also applied. If a path has non-uniform scale (different X-Scale and Y-Scale values), then the transformed stroke weight will be the average of the X-Scale and the Y-Scale.
• For dashed strokes, Dash and Gap lengths are scaled proportionally with transforms. Dash offsets are preserved at their original values, so you may see the dashes move along the path. For best results when applying transforms to dashed strokes, consider using an offset of 0.
• Stroke Taper and Stroke Wave parameters are also scaled proportionally with transforms.
• Stroke Miter Limit scales proportionally, however, small precision/rounding changes in the Bezier control points might slightly alter the angles at sharp corners, potentially pushing some miters just over the limit threshold.
• The script skips certain paths and groups when applying transforms to ensure accuracy and avoid breaking animations:
- Parametric shapes can’t be baked because their points aren’t editable.
- Paths or transforms with keyframes are skipped to protect your animation.
- Same goes for any of these if they are animated: Gradient Start and End Points, Stroke Width and some of the Dashes, Taper and Wave parameters.
- Skew transforms are skipped because they can produce extreme or unpredictable distortion when baked.
- And if a group contains any of these things, it’s skipped to keep things safe and consistent.
An alert message will tell you the number of paths that had transforms applied, and whether any paths were skipped. You may occasionally see a visual glitch where paths appear incorrectly transformed just before clicking OK. This is a temporary display issue in After Effects' rendering - the actual transforms are calculated correctly and will display properly once you click OK.
✂️ 3. Select All Path Properties
Recursively selects all Path properties in the selected shape layer with a single click.
When you click on the "Select All Path Properties" button, what gets selected are the keyframeable paths themselves, not their enclosing Path groups. If a path's points are animated then all keyframes will be selected.
This feature is useful for further batch actions, for example creating Nulls from all Path points. (This can be accessed from After Effects’ Layer > Create menu in AE 2025+, or Window > Create Nulls from Paths.jsx in older versions of After Effects.)
The "Add Keyframe" button can be used to add keyframes. (Press Cmd+U/Ctrl+U to reveal the keyframes that have been added.)
You can copy the selected paths with Cmd+C/Ctrl+C. Note that if any of the paths are animated then keyframe data will be copied. If you just want to copy paths see "Copy Paths to Clipboard" below:
🖋️ 4. Copy Paths to Clipboard
Copies paths as raw vectors without keyframe data for pasting into Illustrator or other software that accepts vector paths from the clipboard.
Best practice is to use Convert Parametric Shapes and Apply Transforms first.
When you click "Copy Paths to Clipboard", only path data will be copied, therefore it will be necessary to add strokes and fills manually in Illustrator. It will also be necessary to reverse the order of the pasted paths by highlighting them in Illustrator's Layers panel and choosing Reverse Order from the Layers panel menu.
⸻
Notes
• Best practice: Prep your paths in the right order. Convert Shapes -> Apply Transforms -> Keyframe or copy the prepped paths.
Undo is fully supported for all PathPrep actions. However, very occasionally when converting Stars with inner roundness, After Effects’ internal undo system may behave inconsistently:
• Expressions Aren't Supported:
If your shape layer uses expressions, we recommend avoiding using PathPrep. Here's why:
Expressions can create complex webs of dependencies where one property references another, which references another, and so on. Tracking all these relationships accurately would be extremely complex and error-prone. Since expressions are typically used for dynamic, procedural animation, they don't align well with the "baking" workflow that PathPrep is designed for.
For expression-heavy projects:
If you have expressions but still want to use PathPrep, consider:
Creating a duplicate composition.
Removing expressions and keyframes from the duplicate.
Using PathPrep on the cleaned-up version.
Reminder
1. Even though the outward appearance of your shape layer will be unchanged, PathPrep's conversions and transformations can significantly modify your shape layer's underlying properties.
2. If you want to keep the original setup, duplicate your layer or composition.
3. Check for keyframes - the tool will skip problematic properties, but it's good to know what won't be processed.
⸻
License Summary
This script is licensed for individual use on up to 3 personal or company-owned computers.
Redistribution, resale, reverse engineering, or sharing of the script is not permitted.
For full terms, see the included LICENSE.txt.
⸻
Support
For questions or support, contact: synthetickvideo@gmail.com
You’ll get a dockable After Effects script panel (.jsxbin) to convert shapes, apply transforms, select all Bezier paths, and copy paths as vectors.