3] Run snippet and watch a strange thing happen. From the snippet you would expect to end up back at the top picture, but Group 3 has become like a normal sequencer track in appearance. Clicking the triangle on group 3 does fix things again though.
testpad snippet
--song
local song = renoise.song()
--loop backwards through tracks
for track = #song.tracks,1,-1 do
song:track(track).collapsed = false
end
Groups got a separate collapse property as well, which you probably also want to reset, via:
--song
local song = renoise.song()
-- uncollapse all groups first
for i = #song.tracks,1,-1 do
local track = song:track(i)
if (track.type == renoise.Track.TRACK_TYPE_GROUP) then
track.group_collapsed = false
end
end
-- then uncollapse all group members or tracks without a group
for i = #song.tracks,1,-1 do
song:track(i).collapsed = false
end