Skip to content

Instantly share code, notes, and snippets.

View zanzlanz's full-sized avatar
💭
<3

Zanzlanz zanzlanz

💭
<3
View GitHub Profile
@zanzlanz
zanzlanz / svg2ae.py
Last active January 20, 2024 18:14
Convert a single SVG stroke to an After Effects path to paste (Windows)
import win32clipboard #pip install pywin32
#This was intended as a one-off to simplify the process of copying a single basic pen stroke from Figma into an After Effects path.
#Hacked together by Zanzlanz
#Notes:
#- It gets the first path ONLY
#- It assumes ONE pen stroke (meaning, one 'm'ove command followed by only 'c'urve commands)
#- Results will be upside-down in AE, just flip it
#- Transforms are not considered, etc. etc.. It's just the raw numbers, I tell you