Is it possible to script custom track routing with intermediate points for complex paths in KiCad?
Yes, scripting custom track routing with intermediate points for complex paths is possible in KiCad using Python. The given script illustrates this by creating a track with a 45-degree corner between two pads:

```python
import pcbnew
from pcbnew import wxPoint, wxPointMM

def add_track(start, end, layer=pcbnew.F_Cu):
    board = pcbnew.GetBoard()
    track = pcbnew.PCB_TRACK(board)
    track.SetStart(start)
    track.SetEnd(end)
    track.SetWidth(int(0.25 * 1e6))
    track.SetLayer(layer)
    board.Add(track)

board = pcbnew.GetBoard()
start = board.FindFootprintByReference('R1').FindPadByNumber('1').GetCenter()
end = board.FindFootprintByReference('D1').FindPadByNumber('1').GetCenter()
offset = end.x - start.x
thru = pcbnew.wxPoint(start.x, end.y - offset)
add_track(start, thru)
add_track(thru, end)

pcbnew.Refresh()
```

This approach is particularly useful for creating tracks that need to navigate around obstacles or meet specific design requirements.