Creating lines at the mid point of existing lines

I am trying to learn python and I wanted to try a simple task to start with.

I have a set of lines and i want to create more lines at the mid point of the current lines.

Since i have done an existing example of it in grasshopper I am wondering if I should just call upon gh components in python, or does that go against trying to learn python?

Thanks!

  • up

    Raul Matagringo

    Hi,

    try this one.

    I know its not python... However the solution it's shorter.

    Hope this helps,

    Raul

    2