Skip to main content
100%

TouchDesigner SVG to SOP and After Effects Bodymovin / Lottie to TD-friendly SVG

✓ Published0🌍 Public
Aakre54
Last edited Jan 20, 2023
Created on Jan 20, 2023

This example demonstrates a workflow for converting Lottie animations into TouchDesigner-compatible SVG geometry. The Node.js script `clean_svg.js` uses `lottie-to-svg` to render each animation frame to SVG, then processes the output through SVGO, svg-flatten, and paper.js to resolve `<use>` references, flatten paths, and apply clipping masks. A companion Python script `svg_to_sop.py` parses the cleaned SVG paths with svgpathtools and converts them into TouchDesigner SOP geometry—cubic Béziers become Bézier SOPs and line segments become polygon SOPs. The result bridges After Effects Bodymovin/Lottie exports to TouchDesigner-friendly SVG files for further procedural manipulation.

AI-generated description

Similar vizzes