Extract selection after flattening?

I’m trying to generate SVGs of letters with different paths to animate the stroke order.

For the letter “A”, after flattening it, I get this :

How can I split the letter into 3 differents layers ?

You can extract the horizontal line by selecting the vertices and cutting it out (CtrlX or X). Then cut the bigger shape into two using the pen tool, assuming that’s how you want it.


Now use the paint bucket (B) and click on one side of the shape twice to finalize the shape separation. You can now select either side of the shape and perform the same cut out as with the first shape.