Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 07-07-2018, 03:43 PM   #1
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default Select time ignoring snap + remove selection

Hi there!

I'd love to set up a mouse modifier that does this. However, one cannot combine mouse behaviors with actions as far as I know – or is it possible?

To clarify, I'd love an item mouse behavior (on left or right drag, say) which creates a time selection and then removes/cuts the area of the item in that time selection.

I settled for creating 2 different actions which I can use with either a key shortcut or a mouse click:
  • Remove area left from mouse to edit cursor
  • Remove area right from mouse to edit cursor

But it's a bit annoying to have to remember two key combos or mouse modifiers depending on whether the mouse is left or right of the edit cursor.

I suppose thise could be done with a script, but is there a way to do it with just a custom action?
MonkeyBars is offline   Reply With Quote
Old 07-07-2018, 04:35 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

If you use SWS extensions, the current SWS pre-release contains an action "SWS/NF: Eraser tool (perform until shortcut released)" which does something like this (if I understand correctly).

Looks like this in use:


A few gotchas though...
- Obeys snapping
- Should be assigned to a shortcut without modifier (to not clash with other mouse modifiers)
- Preferences -> Editing behaviour -> 'If no items are selected, some split/trim/delete actions affect all items at edit cursor' should be turned off.
nofish is offline   Reply With Quote
Old 07-08-2018, 03:46 AM   #3
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default

Amazing, this is EXACTLY what I wanted! Thank you so much for your quick reply.

However it definitely has numerous bugs. The bugs in Ripple mode make it nearly impossible to use. Perhaps in the final release it will work properly.

1. Sometimes (often if you drag your erase over multiple items, e.g.) the erase tool fails to turn off when the shortcut is released. I haven't figured out all the triggers for this, but it's very confusing as the cursor seems to change back to normal while the erase mode is still on.

2. Starting the mouse drag outside an item and dragging in causes the erasure just to keep going in the direction of the drag until the whole track is deleted after or before the drag point. Nasty!

3. If erase during play, often get a nasty audio crack.

Ripple-only bugs:

4. The erase goes way too fast to be usable.

5. You need to release both the shortcut AND the mouse button for it to stop. (Should be mouse only like with any drag behavior.)

6. If the mouse cursor moves outside (or something?), even if the shortcut + mouse drag are released, it causes the same bug as 2. above. This is a definite dealbreaker

Last edited by MonkeyBars; 07-08-2018 at 04:33 AM.
MonkeyBars is offline   Reply With Quote
Old 07-08-2018, 07:00 AM   #4
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Thanks for the usage report (to give some background, I added this to SWS because I also wanted to have something like this).

I'll look into the reported bugs and try to fix, but I can already say, it's a quite 'hacky' approach doing this so I'm not sure if it makes it to a really useable / bugfree version...
nofish is offline   Reply With Quote
Old 07-08-2018, 07:27 AM   #5
jonboper
Human being with feelings
 
jonboper's Avatar
 
Join Date: Dec 2017
Location: Appleton, WI
Posts: 164
Default

Wow, I'd love to have something like this for editing narration...

No pressure @nofish, it seems like a big ask, so I'm not putting this on you, but the concept is amazingly utilitarian.
jonboper is offline   Reply With Quote
Old 07-08-2018, 01:47 PM   #6
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Did test myself now and I see it's indeed unuseable in its current state in Ripple mode. (To be honest, I totally forgot about testing it with Ripple editing, because I rarely use it myself. )

May be difficult to get the current behaviour working correctly with Ripple but I came up with another approach:



i.e. item sections are not deleted immediately but only after releasing the assigned shortcut, which seems to play better with Ripple. (In the gif I have 'Ripple per track' enabled.)

Do you think this would still be useful ?

===

@Mods

Since this is about SWS pre-release, feel free to move this to the SWS pre-release thread...

Last edited by nofish; 07-08-2018 at 01:53 PM.
nofish is offline   Reply With Quote
Old 07-18-2018, 12:33 PM   #7
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
Default

Yes I think it would still be useful... but when I was using the tool in Ripple mode (single track), the delete went really fast and just kept scrolling and deleting. It didn't look at all like your screencap.

By the way, the audio crackle I heard is probably unrelated to the script, as it's happened to be doing other edits during playback after all.

I have actually created TWO custom actions that do something similar to the erase tool, just without a drag action. However, due to the limitations of the available actions, I had to make one for each direction (left and right):

MonkeyBars is offline   Reply With Quote
Old 07-19-2018, 07:38 AM   #8
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Quote:
Originally Posted by MonkeyBars View Post
Yes I think it would still be useful... but when I was using the tool in Ripple mode (single track), the delete went really fast and just kept scrolling and deleting. It didn't look at all like your screencap.
Yeah, I realized the original functionality (as is in the current SWS pre) is unuseable with Ripple. What you see in the second screencap is the redone functionality (will be in next SWS version).
nofish 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 11:35 AM.


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