Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 04-26-2020, 11:26 PM   #81
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Thanks! Hard-coding a modifier key would render that key useless for all other actions. Do you want to trade ALL your shortcuts that use the SHIFT key?
You can toggle snap to grid in Reaper with Alt+S by default. You can change that to any other key you wish. The guide line script will follow the setting.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-27-2020, 12:18 AM   #82
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,134
Default

Quote:
Originally Posted by amagalma View Post
Thanks! Hard-coding a modifier key would render that key useless for all other actions. Do you want to trade ALL your shortcuts that use the SHIFT key?
You can toggle snap to grid in Reaper with Alt+S by default. You can change that to any other key you wish. The guide line script will follow the setting.
Ah, OK, got it.
Buy One is offline   Reply With Quote
Old 05-16-2020, 03:53 PM   #83
paulcola
Human being with feelings
 
Join Date: Apr 2016
Posts: 45
Default

This is SO close to what I'm looking for. I need to have a guide line outside throughout the entire set of tracks, not just on the media. Can the code be changed to accommodate that?
paulcola is offline   Reply With Quote
Old 05-17-2020, 06:15 AM   #84
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by paulcola View Post
This is SO close to what I'm looking for. I need to have a guide line outside throughout the entire set of tracks, not just on the media. Can the code be changed to accommodate that?

Action List --> amagalma_Toggle guide line size between full arrange or item height.lua


You can assign it to a key a toggle whenever you want. Or set it and leave it at full size always.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 05-17-2020, 10:27 AM   #85
chip mcdonald
Human being with feelings
 
chip mcdonald's Avatar
 
Join Date: May 2006
Location: NA - North Augusta South Carolina
Posts: 4,294
Default

Useful and well done. Thanks!
__________________
]]] guitar lessons - www.chipmcdonald.com [[[
WEAR A FRAKKING MASK!!!!
chip mcdonald is offline   Reply With Quote
Old 05-17-2020, 11:08 AM   #86
Tower Studio
Human being with feelings
 
Tower Studio's Avatar
 
Join Date: Jul 2010
Location: Montpellier, France
Posts: 194
Default

This is awesome, making navigating and editing much better for me in Reaper now... But...

I'm on Mac... So I have to disable the optimised drawing, and now I just see that my faders levels don't work anymore. Argh, so frustrating!
Tower Studio is offline   Reply With Quote
Old 05-18-2020, 09:39 AM   #87
paulcola
Human being with feelings
 
Join Date: Apr 2016
Posts: 45
Default

Quote:
Originally Posted by amagalma View Post
Action List --> amagalma_Toggle guide line size between full arrange or item height.lua


You can assign it to a key a toggle whenever you want. Or set it and leave it at full size always.
That is awesome! Where do I get the script? I can't find it in actions, so I must have to import it?

EDIT: Never mind, got it through ReaPack. Thanks again!

Last edited by paulcola; 05-18-2020 at 10:09 AM.
paulcola is offline   Reply With Quote
Old 06-06-2020, 07:53 AM   #88
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Quote:
Originally Posted by amagalma View Post
Action List --> amagalma_Toggle guide line size between full arrange or item height.lua


You can assign it to a key a toggle whenever you want. Or set it and leave it at full size always.
This is amazing thanks a lot.

Would you consider a third mode? Instead of having the whole arrange view, having only the current item AND a bar at the top of the ruler? or if not, showing some cursor infos close to it? Just to help seeing where we are.
lexaproductions is offline   Reply With Quote
Old 06-07-2020, 03:36 AM   #89
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by lexaproductions View Post
This is amazing thanks a lot.

Would you consider a third mode? Instead of having the whole arrange view, having only the current item AND a bar at the top of the ruler? or if not, showing some cursor infos close to it? Just to help seeing where we are.

Thanks! Why not use the full-arrange-height line? Both things you say can be added but I don't see any benefit.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 06-07-2020, 08:37 AM   #90
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Well I prefer the small line on the current item that is less "in your face" than the big line across the full screen but to have my current position always highlighted on the ruler no matter where I am, would be handy.
lexaproductions is offline   Reply With Quote
Old 06-10-2020, 05:23 PM   #91
Chimpscookie
Human being with feelings
 
Join Date: Sep 2019
Posts: 175
Default

When manually creating a midi note, the guide line in the midi editor is drifting forward from the mouse cursor's position. Happens only while inserting a midi note by left dragging(default left drag mouse action).

Edit: tried inserting a note backwards(right to left), all good. Seems to appear only when writing a note from left to right.
Attached Images
File Type: png guideline.png (7.5 KB, 172 views)
Chimpscookie is offline   Reply With Quote
Old 06-11-2020, 09:17 AM   #92
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by Chimpscookie View Post
When manually creating a midi note, the guide line in the midi editor is drifting forward from the mouse cursor's position. Happens only while inserting a midi note by left dragging(default left drag mouse action).

Edit: tried inserting a note backwards(right to left), all good. Seems to appear only when writing a note from left to right.

Yes, this was intentional, in order to show the maximum position where the note end will land. If I left the guide line being where the mouse cursor is, then most of the times the notes would be right of the cursor, so the guide line wouldn't be a guide line any more! But this depends on the zoom level, the note duration, and some Reaper settings (which I currently don't remember which they were), so... yes, it doesn't always work as I intended..
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 06-15-2020, 12:28 PM   #93
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 533
Default

This script works on Mac OS without having to disable optimized drawing now (with the 6.12 update).....SO HAPPY!!!
Tone Ranger is offline   Reply With Quote
Old 06-15-2020, 12:45 PM   #94
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by Tone Ranger View Post
This script works on Mac OS without having to disable optimized drawing now (with the 6.12 update).....SO HAPPY!!!

Nice!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-04-2020, 05:20 AM   #95
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

version 1.62:
- Fixed crash when hiding all tracks in TCP
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-10-2020, 01:45 PM   #96
Brookwood
Human being with feelings
 
Brookwood's Avatar
 
Join Date: May 2014
Location: Brooklyn
Posts: 52
Default Wow-

I hope I can get this working-- was trying myself as a non-coder to make this to better see when using 'split under mouse cursor'.
Thank you!
Brookwood is offline   Reply With Quote
Old 07-11-2020, 02:29 AM   #97
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Fantastic work amagalma!!

As always!

Thanks for filling this missing feature.

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 07-11-2020, 04:03 AM   #98
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Thanks guys
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-12-2020, 12:10 PM   #99
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Hi amagalma,

What are the affects of changing from Metal to Classic? Is there a CPU/GPU hit?

I posed this question on a new thread here: https://forum.cockos.com/showthread.php?t=239681

Any info would be great!

Thanks.

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 07-12-2020, 12:53 PM   #100
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 533
Default

Quote:
Originally Posted by Thonex View Post
Hi amagalma,

What are the affects of changing from Metal to Classic? Is there a CPU/GPU hit?

I posed this question on a new thread here: https://forum.cockos.com/showthread.php?t=239681

Any info would be great!

Thanks.

Cheers,

Andrew K
Hi @Thonex!

As of the 6.12 update, there's no longer any need to disable Metal to get this script to work (at least it works fine with Metal enabled on my system now)...

Just an FYI!!
Tone Ranger is offline   Reply With Quote
Old 07-12-2020, 01:03 PM   #101
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Tone Ranger View Post
Hi @Thonex!

As of the 6.12 update, there's no longer any need to disable Metal to get this script to work (at least it works fine with Metal enabled on my system now)...

Just an FYI!!
Thanks Tone Ranger!!

Good to know. Is 6.12 giving you any issues? I noticed in some pre-release threads issues with exporting (I can't be sure which release it was on) so I'm reticent to update to the latest/greatest (so to speak).

Has it all be smooth sailing for you?

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 07-12-2020, 02:23 PM   #102
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 533
Default

Quote:
Originally Posted by Thonex View Post
Thanks Tone Ranger!!

Good to know. Is 6.12 giving you any issues? I noticed in some pre-release threads issues with exporting (I can't be sure which release it was on) so I'm reticent to update to the latest/greatest (so to speak).

Has it all be smooth sailing for you?

Cheers,

Andrew K
Hey Andrew!

No issues with 6.12c for me so far, been very solid. It could just be my imagination, but graphics seem sharper now for some reason.

You could always try a portable install of 6.12 just to be sure...

Take care!

Steve.
Tone Ranger is offline   Reply With Quote
Old 07-12-2020, 03:27 PM   #103
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Tone Ranger View Post
Hey Andrew!

No issues with 6.12c for me so far, been very solid. It could just be my imagination, but graphics seem sharper now for some reason.

You could always try a portable install of 6.12 just to be sure...

Take care!

Steve.
Thanks Steve!
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 07-12-2020, 04:53 PM   #104
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 533
Default

Quote:
Originally Posted by Thonex View Post
Thanks Steve!
No problem Andrew!
Tone Ranger is offline   Reply With Quote
Old 07-17-2020, 03:43 AM   #105
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by lexaproductions View Post
Well I prefer the small line on the current item that is less "in your face" than the big line across the full screen but to have my current position always highlighted on the ruler no matter where I am, would be handy.
v1.75
- Added ability to always show an additional guide line on the timeline (settings inside the script)
[default: on]
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 07-17-2020, 09:27 PM   #106
The-Zeronaut
Human being with feelings
 
Join Date: Mar 2009
Posts: 308
Default

It really amazes me how such a "simple" script can be such a game changer for my workflow

great work!!!
The-Zeronaut is offline   Reply With Quote
Old 12-09-2020, 07:15 AM   #107
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

I really love this script, it's very useful.

Would it be possible to have the guide lines appear only when we use specific tools with modifiers?

For exemple, I'd like to see the guide lines only when I hold (in my case) the ALT key for splitting items. Sort of like in Cubase.

Are there ways to do this? I've looked at making a custom action but we'd need to be able to assign the "guide lines ON" to the press of the modifier key and "guide lines OFF" to the release of the modifier key.

Thanks,
fbeauvaisc is offline   Reply With Quote
Old 12-10-2020, 05:00 AM   #108
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 517
Default

Thanks again for this script Amagalma!

I second fbeauvaisc´s thoughts. Would be really nice to have it just when pressign ALT to slice stuff
reapero is offline   Reply With Quote
Old 02-17-2021, 07:24 AM   #109
Nick_B
Human being with feelings
 
Join Date: Feb 2008
Posts: 17
Default Slight alignment issue with the guide line script

Script: amagalma_Toggle show editing guide line on item under mouse cursor in Main Window or in MIDI Editor.lua (_RSec9d755f6dbf6401de5b340d9227f0b7ad3805a3)

https://www.screencast.com/t/Gl0ls53dgt

Hi I have been using this excellent script for a while (thank you!) but I have noticed that I have a slight issue with alignment. I probably have something set wrongly.

I have included a little video capture of what happens on my system. Latest version of Reaper, Windows 10 (latest version).

I do a lot of slip editing and find it really helpful. The problem I have is shown. When I select the beginning of the waveform with the guide line at the beginning and then drag it to the left until the point where I align the guide line with the same point on the waveform above (I think that makes sense), what I thought it would do is to line up with the moved waveform now being directly under the waveform above. But it isn't, it is slightly offset to the right.

I can tweak it after but I'm guessing the intention is that it would take it to the same place?

I had a look to see if i could see a setting that offset dragged items but couldn't find anything.

Snap is disabled. I did try the Arrange snap setting in the script to be 1 or 0 but it made no difference.

If it's one of those things it's still very useful but it would be even better if I didn't have to allow for it.
Nick_B is offline   Reply With Quote
Old 02-17-2021, 01:08 PM   #110
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

The script shows the editing guide always at the mouse position.. What happens is that Reaper lets the mouse move for a few pixels before it stars slipping the item contents. I can't do something for this. I guess that Reaper has it like that for some kind of protection against shaky hands?..

Try to place your mouse a few pixels before the position you want to drag..
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-17-2021, 02:42 PM   #111
Nick_B
Human being with feelings
 
Join Date: Feb 2008
Posts: 17
Default

Thank you for the quick reply. Perhaps if I can work out exactly how much it is ‘wrong’ by and if it is the same always then I can create a little action to move the item or items selected by exactly that amount. *It appears to be somewhere between 6 to 10 pixels on my machine depending how far zoomed in I am*

Thank you for taking the trouble to come back so quickly.

I wonder why Reaper has that slightly strange behaviour. I can understand why it would want a particular amount of movement to happen before it considered it as an intentional edit but not why it would then ignore that amount. Mysteries eh?

Last edited by Nick_B; 02-18-2021 at 06:31 PM.
Nick_B is offline   Reply With Quote
Old 02-17-2021, 02:46 PM   #112
Nick_B
Human being with feelings
 
Join Date: Feb 2008
Posts: 17
Default

As a thought would it be possible to create a second thinner guide line to the right of (in my case) the red line that exact distance away? It would then allow the red line to function as now and do all the things it does but allow a slip edit drag to indicate the destination spot so it aligns. ie I would align the second line with the front of the waveform I am aligning to and it would do the adjustment automatically.

Just thinking out loud

Last edited by Nick_B; 02-17-2021 at 03:00 PM.
Nick_B is offline   Reply With Quote
Old 02-18-2021, 04:34 PM   #113
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

I have another idea. I ll try it tomorrow
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-18-2021, 08:35 PM   #114
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v1.80: Fixed guide line misalignment by a few pixels when initiating item dragging or content movement
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-19-2021, 01:58 AM   #115
Nick_B
Human being with feelings
 
Join Date: Feb 2008
Posts: 17
Default

FANTASTIC! Does exactly what I was after. That is SO helpful

Whatever changed from "I can't do something for this." to "I have another idea' is very appreciated

Last edited by Nick_B; 02-19-2021 at 02:25 AM.
Nick_B is offline   Reply With Quote
Old 02-19-2021, 11:51 AM   #116
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Thanks

What happened technically is that while the left mouse button is held down the guide line doesn't follow the mouse movement but the item movement
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-28-2021, 04:20 PM   #117
Kr3eM
Human being with feelings
 
Kr3eM's Avatar
 
Join Date: Apr 2019
Posts: 231
Default

When clicking on an Empty Item I get...

343: bad argument #1 to 'GetMediaItemTakeInfo_Value'(MediaItem_Take expected)

running v1.80
Kr3eM is offline   Reply With Quote
Old 03-01-2021, 06:34 AM   #118
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v1.81: Fix crash with empty items introduced in v1.80
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 03-01-2021, 08:38 AM   #119
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Hi guys,

I've recently started to experience issues with this script. I don't know if it's due to the recent update but now I often get a line that's burned into the screen until I restart Reaper.



I've been using this script for a while now and this never happened before. The line does not move with the zoom it's burned into the main arrange window. It does not show in the midi editor and it disappears when I close Reaper.

Cheers,
Attached Images
File Type: png Burnt Line.png (37.5 KB, 259 views)
fbeauvaisc is offline   Reply With Quote
Old 03-01-2021, 11:53 AM   #120
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Any steps to reproduce the problem?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma 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 01:19 PM.


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