Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 05-30-2019, 04:03 PM   #1
Triode
Human being with feelings
 
Triode's Avatar
 
Join Date: Jan 2012
Posts: 646
Default Select Item Under Mouse Cursor not working identically to Select Item Mouse Modifier

Steps to reproduce:

1. Split an audio item at the edit cursor so that a crossfade is created after the split.
2. Zoom in so that there is an easy hit area with the regular selection tool (not the crossfade one) within the fade area
3. Using the mouse modifier "Select Item" click in the bottom triangular shaped part of the fade area. - Result: only the item that was after the cursor split is selected. This is good and predicatable in my view.

3a. Open the Action list and use the "Select item under mouse cursor" action with the mouse positioned in the same part of the fade area. Result: The same item is selected but also the item that shares the fade is selected. This is undesirable for scripts that use the "select item under mouse cursor" action as it would make most sense for it to duplicate the vanilla mouse modifier version to build other things on.

I use it in a script that selects items in groups or folders or individually via sws dummy toggles etc and when editing the tiny little splits that occur on drop ins it gets fiddly because of the above behaviour.
__________________
Brush and Beater Drums Online: www.outoftheboxdrums.co.uk
Triode is offline   Reply With Quote
Old 02-17-2020, 06:17 PM   #2
Triode
Human being with feelings
 
Triode's Avatar
 
Join Date: Jan 2012
Posts: 646
Default

For anyone interested I found a script snippet that works to select the item under the mouse even if the mouse if hovering over the fade area.
It's worth noting that if the item (on the left) adjacent to the crossfade is already selected this also needs an "unselect all items" command first to prevent both from becoming selected


Code:
_, _, _ = reaper.BR_GetMouseCursorContext()
item = reaper.BR_GetMouseCursorContext_Item()
if item ~= nil then

        reaper.SetMediaItemSelected(item,1)
        
        reaper.UpdateArrange()

end
__________________
Brush and Beater Drums Online: www.outoftheboxdrums.co.uk
Triode 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 06:20 PM.


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