RPR CountSelectedTracks
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CountSelectedTracks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CountSelectedTracks
Contents |
CountSelectedTracks()
int CountSelectedTracks(ReaProject* proj)
Counts and returns the number of selected tracks in the specified project.
Parameters
Parameter type | Name | Description |
---|---|---|
ReaProj* | proj | Project index, 0 for the active project |
Returns
Returns a scalar value.
Type | Description |
---|---|
integer | The number of selected tracks in the project. |
Examples
C++
Perl
# # CountSelectedTracks.pl # use strict; use warnings; my $num_selected_tracks = RPR_CountSelectedTracks(0); RPR_ShowConsoleMsg("There are $num_selected_tracks tracks in the current project");
Python
# # CountSelectedTracks.py # num_selected_tracks = RPR_CountSelectedTracks(0); RPR_ShowConsoleMsg("There are "+str(num_selected_tracks)+" tracks in the current project");
See Also
track: GetLastTouchedTrack, GetMediaItemTake_Track, GetMediaItem_Track, GetMediaTrackInfo_Value, GetNumTracks, GetSelectedTrack, GetSelectedTrackEnvelope, GetSetMediaTrackInfo_String, GetSetTrackState, GetTrack, GetTrackAutomationMode, GetTrackEnvelope, GetTrackEnvelopeByName, GetTrackGUID, GetTrackMIDINoteName, GetTrackMIDINoteNameEx, GetTrackMediaItem, GetTrackNumMediaItems, GetTrackState, GetTrackUIVolPan, HasTrackMIDIPrograms, HasTrackMIDIProgramsEx, InsertTrackAtIndex, MoveMediaItemToTrack, MuteAllTracks, PlayTrackPreview, PlayTrackPreview2, SetMediaTrackInfo_Value, SetTrackAutomationMode, SetTrackMIDINoteName, SetTrackMIDINoteNameEx, SetTrackSelected, SoloAllTracks, StopTrackPreview, StopTrackPreview2, TrackFX_FormatParamValue, TrackFX_GetCount, TrackFX_GetFXName, TrackFX_GetNumParams, TrackFX_GetParam, TrackFX_GetParamName, TrackFX_SetParam, TrackList_AdjustWindows, TrackList_UpdateAllExternalSurfaces, Track_GetPeakInfo, AddMediaItemToTrack, BypassFxAllTracks, CSurf_NumTracks, CSurf_OnTrackSelection, CSurf_SetTrackListChange, CSurf_TrackFromID, CSurf_TrackToID, CountSelectedTracks, CountTrackEnvelopes, CountTrackMediaItems, CountTracks, DeleteTrack, DeleteTrackMediaItem, EnumTrackMIDIProgramNames, EnumTrackMIDIProgramNamesEx,
(Section automatically generated, edits may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CountSelectedTracks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CountSelectedTracks