View Single Post
Old 01-12-2020, 12:17 AM   #559
Stirner
Human being with feelings
 
Join Date: Oct 2019
Posts: 42
Default

I don't think it's possible. I can't find a function in the Reaper API for getting selected items in the media explorer. A simple function that returns the filepath of the selected item would be enough for this task, I think.

Another problem would be to insert an RfxChain file to the selected track. TrackFX_AddByName doesn't work with filenames.

Is there is another global interface for all Reaper windows/dialogs? I mean something like "GET VALUE OF SELECTED ITEM IN THE ACTIVE WINDOW"? In this case the filepath of selected items in the media explorer?

Or another idea. There is TrackFX_CopyToTrack, that copies from a MediaTrack object. Is it possible to get a pointer to Media Explorer window and convert this to a MediaTrack object?
Stirner is offline   Reply With Quote