Lua: Renoise.song().tracks[].members[].track_Index

I’m running into the same thing updating my Push Back tool. When the function is called from a group track I will have to

  • iterate over every track to the left of current track (type group)
  • go through it’s group_parent, possibly that one’s group_parent, etc. routing

to get the track indexes of subtracks (to be able to modify their delay_column data in this case).
With the current state I’m just gonna not complete the v1.0 of the tool, I might code it, but I’m not confident it’s gonna run properly on every sys with the turn of a dial you know? :) and it’s just double double inefficient code…
I would really like to know if there’s a better way.