The principle is found here (bottom example): Lua: Renoise.song().tracks[].members[].track_Index - #4 by taktik
When I was a bit deeper into Renoise API, I used to wrap my own object creation that also passed a .parent_object into all objects. Very neat and practical, but the syntax is not clear to my memory.