Python track->gettrack()


has anyone used track->gettrack()
expects a parameter of type ENDPOINT_T which is i believe some enum for start or end of track (0 or 1) but does not exist in the py.
I’m not really much of a python person in case that wasn’t obvious!


Have a look at KiCommand python source code. There are a HUGE number of examples in the code about retrieving all of the various elements.

Depending on what you’re trying to do, KiCommand itself might be sufficient for your purposes.

Edit to add: track.gettrack is unfortunately not in KiCommand source code.


I haven’t used that method, but try putting in 0 and 1 and see what it returns. Use SetSelected on the return value and it should select the track.