Get group track in which my track is in.

NickPic2's icon

Hi,
I can know if a track is, in fact, a "group track" if I get the "is_foldable" attribute. But is there a way to know if a "non-foldable" track is, as well, inside a group track?

Thanks for your help!

broc's icon

For tracks inside a group the property 'available_output_routing_types' contains an entry of the group track. However, it applies to audio tracks only.

tyler mazaika's icon

All tracks have a child called "group_track". So just call "get group_track" on the track object. For tracks which are in groups this will return the "id nn" (the id of the containing group track) but for tracks which are not in groups this will return "id 0".

broc's icon

Hi Tyler,
very interesting, but I don't see this feature in my LOM documentation.
Can you please give a pointer where it's documented.

tyler mazaika's icon

Fair point, Broc, I guess it isn't documented. I found it using my LiveAPI-Interactive gadget ( http://www.maxforlive.com/library/device.php?id=4925 ). FWIW if you call getinfo on a track you should see it there.

[live.object] (Track) > getinfo
info id 589
info type Track
info description This class represents a track in Live. It can be either an Audio track\\, a MIDI Track\\, a Return Track or the Master track. The Master Track and at least one Audio or MIDI track will be always present. Return Tracks are optional.
info children clip_slots ClipSlot
info children devices Device
info child canonical_parent Song
info child mixer_device MixerDevice
info child view View
info child group_track Track
info property arm bool
info property available_input_routing_channels dict
...

broc's icon

Thanks. Using your tool with Live9/Max7 I don't get that entry.
So it seems to be new in Live10/Max8.

tyler mazaika's icon

Ah, thanks for pointing that out. That makes some sense given the track nesting behaviors/capabilities changed in Live10.