Stair Stringer Curved to straight

Hello everyone!

Got a question since I’m struggling a bit with making a clean stringer for stairs. The main issue is having a stringer that would follow the stair properly (the curved and straight parts ) with a similar height from the top and the bottom of the stairs… I feel like the GH definition I created is far from optimal so I’d like to know whats the most optimal workflow / definition in this case?

Thank you beforehand to anyone who can help out :slight_smile:

Q.3dm (2.9 MB)
Q-sT.gh (58.3 KB)

I’ve equally tried Flow along srf method and sweeping but unfortunately it didnt go “smoothly” :frowning: The curved part is doing the sweep quite weirdly in every case