Dear Pythonheads! Im trying to remember everything what i learnt about Python for the last few years. So far everything not bad, but some things missing in my head.
I want to use SNM_AddReceive to add a Receives to a new track from selected tracks.
So the first i collected all selected tracks pointers to a list
Code:
def GetSelectedTracksID():
selCount = RPR_CountSelectedTracks(0) # Count selected tracks
numTracks = 0
pointerList = [] # create an empty list
while numTracks < selCount: # Go through all selected tracks
trackID = RPR_GetSelectedTrack(0, numTracks) # Get pointer of each track in loop
pointerList.append(trackID) # add this pointer to pointerlist
numTracks += 1
return pointerList
Then i called this function and inserted a new track with action
Code:
GetSelectedTracksID()
RPR_Main_OnCommand(40001,0)
And now i want to use this
Code:
bool SNM_AddReceive(MediaTrack* src, MediaTrack* dest, int type)
And i can't remember how to properly use my ID's from a pointerList in this string since its not a one track but a list of tracks...Could anybody help me please?
Thanks!!