oh, wow! thanks for this. i was hoping for something simpler like a native call that would return something simple. will try this soon.
i also found 'reaper.GetMediaTrackInfo_Value' which has an option for:
Code:
B_SHOWINTCP : bool * : track control panel visible in arrange view (do not use on master track)
i got something working using that.
thanks again, MusoBob. the help is much appreciated!
babag
edit:
here's an excerpt of what i have using GetMediaTrackInfo_Value:
Code:
local TrxTotal = reaper.CountTracks( 0 )
totalVis = 0
for i = 0, TrxTotal - 1 do -- loop through tracks
local TrxVis = reaper.CountSelectedTracks( 0 ) -- set variable for number of selected tracks in current project ( 0 )
local TrkCurr = reaper.GetTrack( 0, i ) -- set variable for current track
local Visible = reaper.GetMediaTrackInfo_Value( TrkCurr, "B_SHOWINTCP" )
if Visible == 1 then
totalVis = totalVis + 1
end
end