|
|
|
12-04-2018, 09:53 AM
|
#1
|
Human being with feelings
Join Date: Sep 2018
Location: China
Posts: 565
|
New script: Adjust distance between items via mouse wheel
Just made this simple script to let you adjust items' distance with your mouse wheel
EDIT: Instrction of the script
- 1. Load it from actionlist
- 2. Assign a shortcut with mouse wheel, such as Ctrl+ mouse wheel, or Shift+ mouse wheel, or any modifier keys that you like
Last edited by dsyrock; 12-04-2018 at 06:30 PM.
|
|
|
12-04-2018, 01:55 PM
|
#2
|
Human being with feelings
Join Date: Sep 2018
Posts: 3
|
Nice script, dsyrock
Exponential distance would be much appreciated.
|
|
|
12-04-2018, 02:19 PM
|
#3
|
Human being with feelings
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
|
How does it work? If I try to scroll my view pans vertical as expected. Even if I activate the script it does not overwrite the standard behavior.
|
|
|
12-04-2018, 04:45 PM
|
#4
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Quote:
Originally Posted by Eliseat
How does it work? If I try to scroll my view pans vertical as expected. Even if I activate the script it does not overwrite the standard behavior.
|
You have to assign the script itself to Mousewheel (or Mousewheel + modifier) via action list, this works for me.
|
|
|
12-04-2018, 05:21 PM
|
#5
|
Human being with feelings
Join Date: Sep 2018
Location: China
Posts: 565
|
Quote:
Originally Posted by Eliseat
How does it work? If I try to scroll my view pans vertical as expected. Even if I activate the script it does not overwrite the standard behavior.
|
I'm sorry that I forgot to write some instruction if it. And just try to do as Nofish said. And thanks, Nofish
|
|
|
12-04-2018, 06:36 PM
|
#6
|
Human being with feelings
Join Date: Sep 2018
Location: China
Posts: 565
|
Quote:
Originally Posted by Indeo
Nice script, dsyrock
Exponential distance would be much appreciated.
|
@Indeo
You mean if I nudge one item with 1 unit, then nudge the next one with 2 units, and the next one with 4 units, and then 8, 16, 32 ......2^n?
My original purpose was adjusting and keeping the same distance of items at the same time. Because I'm going to use this to deal with the sound like footstep.
|
|
|
12-04-2018, 09:09 PM
|
#7
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Quote:
Originally Posted by dsyrock
I'm sorry that I forgot to write some instruction if it. And just try to do as Nofish said. And thanks, Nofish
|
Thank you for the script.
|
|
|
12-05-2018, 02:49 AM
|
#8
|
Human being with feelings
Join Date: Mar 2016
Posts: 1,239
|
Quote:
Originally Posted by dsyrock
@Indeo
You mean if I nudge one item with 1 unit, then nudge the next one with 2 units, and the next one with 4 units, and then 8, 16, 32 ......2^n?
My original purpose was adjusting and keeping the same distance of items at the same time. Because I'm going to use this to deal with the sound like footstep.
|
My assumption was that the OP meant that the first click of the mousewheel moves it a very small distance, and with each subsequent click the distance (for all items) gets bigger....
|
|
|
12-05-2018, 03:29 AM
|
#9
|
Human being with feelings
Join Date: Sep 2018
Posts: 3
|
Exactly. Like a roll slowing down or speeding up.
|
|
|
12-05-2018, 05:15 AM
|
#10
|
Human being with feelings
Join Date: Jul 2009
Posts: 1,071
|
Thanks dsyrock good idea
@Indeo
you can get exponential by changing these values
for left-
reaper.ApplyNudge(0, 0, 0, 0, 1+i, 1, 0)
for right
reaper.ApplyNudge(0, 0, 0, 0, 1+i, 0, 0)
0=ms, 1=seconds, 2=grid, 3=256th notes, ..., 15=whole notes, 16=measures.beats (1.15 = 1 measure + 1.5 beats), 17=samples, 18=frames, 19=pixels, 20=item lengths, 21=item selections
Last edited by J Reverb; 12-05-2018 at 05:32 AM.
|
|
|
12-05-2018, 07:27 AM
|
#11
|
Human being with feelings
Join Date: Sep 2018
Location: China
Posts: 565
|
Quote:
Originally Posted by andyp24
My assumption was that the OP meant that the first click of the mousewheel moves it a very small distance, and with each subsequent click the distance (for all items) gets bigger....
|
Hmm, I see. But I'm not sure it is a good idea. First, this is a "one-time-script",there is no FIRST click or SECOND click. Every click is a FIRST click. If you need the script to tell it's a first or second click, it must be written in defer mode, which is bad for your CPU. So I just simply dicided to nudge 1 frame each time.
If you think that 1 frame is not enough for you, feel free to edit the code as J Reverb said
|
|
|
12-05-2018, 07:33 AM
|
#12
|
Human being with feelings
Join Date: Jun 2006
Posts: 22,567
|
cool as fuck!
not sure if I need it but
cool as fuck!
thank you
|
|
|
12-05-2018, 03:46 PM
|
#13
|
Human being with feelings
Join Date: Sep 2018
Posts: 3
|
Quote:
Originally Posted by J Reverb
you can get exponential by changing these values...
|
That's the way, J Reverb. Thank you very much.
|
|
|
12-08-2018, 01:51 AM
|
#14
|
Human being with feelings
Join Date: Feb 2017
Posts: 305
|
Thank you much!
I've thought about one but with gui and other stuff
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:46 AM.
|