Old 03-03-2017, 06:57 PM   #1
Etalon
Human being with feelings
 
Etalon's Avatar
 
Join Date: Aug 2014
Posts: 68
Default Set focus to Media Explorer

I like using "Play through selected track" option and a "Preview: play" shortcut in Media Explorer to try out samples with different effects on separate tracks before bringing them into the project.

However, if I choose an another track with different effects, Media Explorer loses focus and I can't trigger samples until clicking somewhere on the Media Explorer again...

If there would be a "Set focus to Media Explorer" action, it would be possible to focus the explorer BEFORE previewing samples.

Any thoughts on this?
Etalon is offline   Reply With Quote
Old 07-22-2017, 06:11 PM   #2
flipotto
Human being with feelings
 
flipotto's Avatar
 
Join Date: Feb 2007
Location: VA
Posts: 887
Default

I'd like this too...
flipotto is offline   Reply With Quote
Old 01-07-2018, 02:28 AM   #3
undertheradar84
Human being with feelings
 
Join Date: Aug 2016
Posts: 7
Default Set focus to media explorer and search field

If an action were made for these it’s really speed up workflows.
undertheradar84 is offline   Reply With Quote
Old 06-30-2019, 03:46 PM   #4
themixtape
Human being with feelings
 
themixtape's Avatar
 
Join Date: Aug 2009
Posts: 1,199
Default

Couldn't agree more here. I added some actions to MIDI buttons (CC#) to browse media/loops via up/down and "insert item"... (to whatever selected track, at cursor point)

50% of the time... inserting the item via MIDI either keeps the Media Explorer window focused (what I want) or loses focus (what I don't want), even though it's still on top of the main Reaper arrangement/track view.

Is this a bug or am I just doing something wrong? Thanks guys!
__________________
FREE copyright-safe/DMCA-safe music for Twitch/Kick streamers, classrooms, waiting rooms (playlists on all streaming platforms):
https://tinyurl.com/copyrightsafemusic
themixtape is offline   Reply With Quote
Old 06-15-2021, 12:50 AM   #5
talustalus
Human being with feelings
 
Join Date: Dec 2018
Posts: 1,025
Default

Can we have this please???

Same exact philosophy as 'focus arrange' and 'focus midi editor'.... if we're going to have modulated screenset ability then we should be allowed to keyboard shortcut our way to each window, where the keyboard actions change depending on which window is in focus.
talustalus is offline   Reply With Quote
Old 06-15-2021, 01:08 AM   #6
Daodan
Human being with feelings
 
Join Date: Jan 2011
Posts: 1,182
Default

Script: X-Raym_Focus media explorer.lua
Daodan is offline   Reply With Quote
Old 01-28-2023, 12:19 PM   #7
Tycho
Human being with feelings
 
Tycho's Avatar
 
Join Date: Jan 2011
Location: San Francisco
Posts: 461
Default

Quote:
Originally Posted by Daodan View Post
Script: X-Raym_Focus media explorer.lua
on mac, for me this script focuses the media explorer but specifically on the volume control, not the file list. I have to tab twice to reach the file list. is there any way to modify this so that it targets the file list specifically? the idea would be that I could fluidly switch back and forth between arrange and explorer, using the arrow keys to flip through and preview files when I switch to media explorer. right now the arrow keys just turn the preview volume up and down as that element is selected and apparently supersedes the fact that the arrow keys are mapped to select next/previous file in directory
Tycho is offline   Reply With Quote
Old 01-28-2023, 12:41 PM   #8
FeedTheCat
Human being with feelings
 
FeedTheCat's Avatar
 
Join Date: May 2019
Location: Berlin
Posts: 2,203
Default

Quote:
Originally Posted by Tycho View Post
on mac, for me this script focuses the media explorer but specifically on the volume control, not the file list. I have to tab twice to reach the file list. is there any way to modify this so that it targets the file list specifically? the idea would be that I could fluidly switch back and forth between arrange and explorer, using the arrow keys to flip through and preview files when I switch to media explorer. right now the arrow keys just turn the preview volume up and down as that element is selected and apparently supersedes the fact that the arrow keys are mapped to select next/previous file in directory
Edit the script and change the 1045 to a 1001.
__________________
Featured scripts: REAPER Update UtilityLil ChordboxGridbox/Adaptive gridMX TunerRS5K LinkMIDI Editor Magic Donate💝: PayPal|ko-fi
FeedTheCat is online now   Reply With Quote
Old 01-28-2023, 12:57 PM   #9
Tycho
Human being with feelings
 
Tycho's Avatar
 
Join Date: Jan 2011
Location: San Francisco
Posts: 461
Default

awesome thanks that worked. the weird thing is that this is only an issue when the media explorer is docked. If I have it as a free floating window I can close it, do work in arrange, then open it again and my file selection is retained, I can pick up right where I left off in the file list using the arrow keys.

in docked mode it seems to lose all memory of where I was in the file list and hitting the down arrow just selects the first file/folder in the list. seems trivial but when scanning through and previewing large directories of samples it's a pain to try and find where I left off.

The reason I prefer docked mode is because it shrinks the arrange view to accommodate the ME so zoom /scroll functions etc. work as intended. otherwise a lot of content gets hidden behind the ME window.
Tycho is offline   Reply With Quote
Old 02-06-2023, 06:03 PM   #10
FeedTheCat
Human being with feelings
 
FeedTheCat's Avatar
 
Join Date: May 2019
Location: Berlin
Posts: 2,203
Default

Quote:
Originally Posted by Tycho View Post
in docked mode it seems to lose all memory of where I was in the file list and hitting the down arrow just selects the first file/folder in the list. seems trivial but when scanning through and previewing large directories of samples it's a pain to try and find where I left off.
I think that's a bug... probably worth reporting it to the devs. I published some docker scripts the other day that might help though. (State is retained when toggling dock visibility and it sounds like you're trying to avoid screensets )
__________________
Featured scripts: REAPER Update UtilityLil ChordboxGridbox/Adaptive gridMX TunerRS5K LinkMIDI Editor Magic Donate💝: PayPal|ko-fi
FeedTheCat is online now   Reply With Quote
Old 10-28-2023, 01:19 AM   #11
Mantiruna
Human being with feelings
 
Join Date: Oct 2023
Posts: 49
Default

Quote:
Originally Posted by FeedTheCat View Post
Edit the script and change the 1045 to a 1001.
Hey! Where do I find those numbers to edit?
I opened the the scrip in the edit window, but I don't see "1045"

See picture below how the edit window looks for me
Attached Images
File Type: jpg Bildschirmfoto 2023-10-28 um 10.29.13.jpg (102.3 KB, 20 views)

Last edited by Mantiruna; 10-28-2023 at 01:30 AM. Reason: picture
Mantiruna is offline   Reply With Quote
Old 10-28-2023, 01:42 AM   #12
FeedTheCat
Human being with feelings
 
FeedTheCat's Avatar
 
Join Date: May 2019
Location: Berlin
Posts: 2,203
Default

Quote:
Originally Posted by Mantiruna View Post
Hey! Where do I find those numbers to edit?
I opened the the scrip in the edit window, but I don't see "1045"

See picture below how the edit window looks for me
Looks like X-Raym has updated the script so this tweak can not be applied anymore. It doesn't seem to be necessary though, right? The new version does focus the file list for me.
__________________
Featured scripts: REAPER Update UtilityLil ChordboxGridbox/Adaptive gridMX TunerRS5K LinkMIDI Editor Magic Donate💝: PayPal|ko-fi
FeedTheCat is online now   Reply With Quote
Old 10-28-2023, 01:44 AM   #13
Mantiruna
Human being with feelings
 
Join Date: Oct 2023
Posts: 49
Default

It doesn't for me unfortunately, I still have to press TAB 2 times to focus on the file list.
Maybe someone has the old script? (or is it possible to add the command "press tab two times" to the script or anything? I don't know.. )
Mantiruna is offline   Reply With Quote
Old 10-28-2023, 01:59 AM   #14
FeedTheCat
Human being with feelings
 
FeedTheCat's Avatar
 
Join Date: May 2019
Location: Berlin
Posts: 2,203
Default

Quote:
Originally Posted by Mantiruna View Post
It doesn't for me unfortunately, I still have to press TAB 2 times to focus on the file list.
Maybe someone has the old script? (or is it possible to add the command "press tab two times" to the script or anything? I don't know.. )
Hmm, what OS are you on?

Try adding this line of code to line 33:

Code:
    hwnd = reaper.JS_Window_FindChildByID(hwnd, 1001) or hwnd

like this:

Code:
  hwnd = GetMediaExplorerHWND()

  if hwnd then
    hwnd = reaper.JS_Window_FindChildByID(hwnd, 1001) or hwnd
    reaper.JS_Window_SetFocus( hwnd )
  end
__________________
Featured scripts: REAPER Update UtilityLil ChordboxGridbox/Adaptive gridMX TunerRS5K LinkMIDI Editor Magic Donate💝: PayPal|ko-fi
FeedTheCat is online now   Reply With Quote
Old 10-28-2023, 02:11 AM   #15
Mantiruna
Human being with feelings
 
Join Date: Oct 2023
Posts: 49
Default

Quote:
Originally Posted by FeedTheCat View Post
Hmm, what OS are you on?
Mac Big Sur

Quote:
Originally Posted by FeedTheCat View Post
Try adding this line of code to line 33:

Code:
    hwnd = reaper.JS_Window_FindChildByID(hwnd, 1001) or hwnd

like this:

Code:
  hwnd = GetMediaExplorerHWND()

  if hwnd then
    hwnd = reaper.JS_Window_FindChildByID(hwnd, 1001) or hwnd
    reaper.JS_Window_SetFocus( hwnd )
  end
This works, thank you very much!
Mantiruna is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.