Assign an input midi channel to a track via midi remote or script

Hello, in C15 pro is there a hack to assign a midi input channel number to the selected track without doing it manually from the inspector ?

Thanks