# Automatic division of a Bezier curve with a given ratios

I use a curve that serves as the cross section of a ring. Since I want to make not only solid coloured rings, but also 2 and 3 color rings, I want to divide the curve. However, I currently do this manually (ratios: 3: 1; 1: 4: 1; 1: 2: 1; etc., taking care of the dimensions). But with different types of cross sections, I would have to create it quite often and in several ways, which is a time consuming process.

E.g The following image shows what I would like to achieve.

So to do this, I want to ask for help on how to speed up creation instead of manual splitting.

It takes as parameters the percentage of curve segment length you want to place cuts at separated by spaces. For your example at $$1:3:1$$ you'd have five parts with $$0.2$$ factor so you need two cuts at 0.2 0.8.