Old 05-19-2015, 07:46 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default Scripts: View and Zoom (Various)

Hi !

Thanks to new SWS API functions designed by Breeder, we are now able to make Scripts related to Viewport and Zoom.

Here is a thread to showcase some scripts I made (or scripts I'm trying to do) related to this subject. It is pretty new, I'm just experimenting.

From my script pack:

  • View/X-Raym_Zoom to region at edit cursor.lua
    This one is pretty simple and self-explanatory, I don't think that a screenshot is needed
    Would you know if it possible to made ease in/ease out for this, for a smooth zoom level transition ?
  • View/X-Raym_Offset play cursor continous play position.eel
    Demo.
    Well, I struggle with this one. The idea is simple: it runs in background; when continuous playback is one and auto scrolling is off, it simulates continuous playback position, but not in a centered way (offset). (for default centered, both states need to be on).
    That work with absolute value, but I don't succeed to make it work with different zoom level. Any help is welcome
    (note: it is based on heda's script Auto Record :P He his kind of the defer script expert here :P)
    (note: Sure it would be better as a native solution, but I don't think devs are intested by this feature).
    (note: this is not a high priority script).
All of this can be found on my website (see my signature).


Cheers !

EDIT: 2015-10-07
A way to navigate in very long subtitling project !
  • Find and go to next items on selected tracks with input text as notes


EDIT: 2018-06-21
  • X-Raym_Go and zoom to next selected item without losing selection.lua
  • X-Raym_Go and zoom to previous selected item without losing selection.lua

Useful when you have to loop in items selection in a gigantic project !



Last edited by X-Raym; 06-20-2018 at 04:57 PM.
X-Raym is offline   Reply With Quote
Old 09-03-2015, 08:23 PM   #2
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

First script: Just excellent and precisely what i as looking for : thank you very much !!
vanhaze is offline   Reply With Quote
Old 10-07-2015, 05:01 AM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default Initial release

New script !

Find and go to next items on selected tracks with input text as notes

Screenshot above :P
X-Raym is offline   Reply With Quote
Old 10-07-2015, 05:22 AM   #4
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Wowooo , so handy ! Thx a Bunch X-Raym !!
vanhaze is offline   Reply With Quote
Old 10-07-2015, 05:27 AM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

I wasn't expected such excitement for this one haha

I have to admit that it is prety basic for the moment,
It is case sensitive, it does loop the search (if there is nothing in front)
and there is no "previous items" version
BUT is is multitracks !

I guess it is enough for the moment.
X-Raym is offline   Reply With Quote
Old 10-07-2015, 06:05 AM   #6
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

thanks!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 10-07-2015, 10:50 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Oh man, there was already the SWS find window



It doesn't work on selected tracks only and doesn't move the cursor but I will not have code the script if I new we can do it... --'
X-Raym is offline   Reply With Quote
Old 10-07-2015, 11:29 AM   #8
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by X-Raym View Post
Oh man, there was already the SWS find window



It doesn't work on selected tracks only and doesn't move the cursor but I will not have code the script if I new we can do it... --'
I feel sorry for you dude! I assumed you would have known about it

Like you said though.. they have different functions

If you could get yours to also function as a "replace" function for words it finds then you'll be on to a complete winner there!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 10-07-2015, 11:54 AM   #9
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@musicbynumbers
Thanks for your support ^^
The lesson is learned now. :P

Actually, I already made a Search/Replace script that works on notes of selected items, the view script was a mod on that first one
X-Raym is offline   Reply With Quote
Old 10-07-2015, 01:03 PM   #10
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by X-Raym View Post
@musicbynumbers
Thanks for your support ^^
The lesson is learned now. :P

Actually, I already made a Search/Replace script that works on notes of selected items, the view script was a mod on that first one
Cool! That's very useful.

Would it be difficult to adapt it to items and maybe tracks as well?

Being able to clear out items of certain inherited suffixes etc would be great!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 10-07-2015, 02:14 PM   #11
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@musicbynumbers
I would not say "hard" but, but as every script, it takes a minimum of time :P

Would you like to sponsor their development ?
X-Raym is offline   Reply With Quote
Old 10-07-2015, 02:58 PM   #12
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by X-Raym View Post
@musicbynumbers
I would not say "hard" but, but as every script, it takes a minimum of time :P

Would you like to sponsor their development ?
Sure Let me get to the weekend and I'll sort something out.

I have been donating to different scripters here and there and if I haven't donated to you yet I apologise will do soon!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 10-07-2015, 05:23 PM   #13
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@musicbynumbers
Tracks Names Search and Replace: Scripts: Items Properties (various)
Takes Names Search and Replace: Scripts: Tracks Names (various)

See both first post for the screenshots,

hope you will like it ! :P
X-Raym is offline   Reply With Quote
Old 10-10-2015, 07:27 AM   #14
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

great! replied in the other thread and donated

Was just looking at the video demo on the site.

Would it be hard to have an "apply" button as well as cancel and ok?

and maybe an "undo" button that would undo the last naming in reaper. (if possible)

This would mean we could keep the window open and use it to search and name other stuff too.

Not a big deal if it's not possible..
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 06-20-2018, 04:56 PM   #15
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Two new scripts,
  • X-Raym_Go and zoom to next selected item without losing selection.lua
  • X-Raym_Go and zoom to previous selected item without losing selection.lua

Useful when you have to loop in items selection in a gigantic project !





Shared for free in Reapack.


Please consider making a donation if you like them


Cheers !
X-Raym is offline   Reply With Quote
Old 03-22-2019, 12:07 PM   #16
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

New script:





  • X-Raym_Scroll arrange view if mouse reaches screen edges.lua



Designed to release tension on the hand by avoiding to mouse wheel click for the hand tool, or to click and drag scroll bars, or to use another hand for scrolling shortcuts / device (which is not that instinctive). Inspired by RTS games :P


TODO:
  • -- Scroll Only if REAPER is in FOCUS
  • -- MAJ + Scroll FAST
  • -- Find on which screen is REAPER
X-Raym is offline   Reply With Quote
Old 03-22-2019, 12:18 PM   #17
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Two others simple scripts:
  • X-Raym_Scroll vertically down a little bit.lua
  • X-Raym_Scroll vertically up a little bit.lua
Native actions move by a whole track which is a bit too much.
X-Raym is offline   Reply With Quote
Old 04-03-2019, 03:11 PM   #18
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

"Scroll arrange view if mouse reaches screen edges" - this one is a bliss! Waiting for that modification to scroll faster when needed, will be perfect. Thank you!
Skorobagatko is offline   Reply With Quote
Old 04-03-2019, 03:26 PM   #19
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Skorobagatko
Glad you like it !
I'm also surprise how instrinctive it is. I set it as SWS Global action start up :P


Note: I already implemented the mouse modifiers for speed : just press shift keys on edges, .P 5Ctrl for slow speed only zorks on vertical)
X-Raym is offline   Reply With Quote
Old 04-03-2019, 04:23 PM   #20
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Quote:
Originally Posted by X-Raym View Post
@Skorobagatko
Glad you like it !
I'm also surprise how instrinctive it is. I set it as SWS Global action start up :P


Note: I already implemented the mouse modifiers for speed : just press shift keys on edges, .P 5Ctrl for slow speed only zorks on vertical)
Wow! Thanks)

I have a question - Is it possible to change "default" speed of scrolling? For example like you can edit track height A and B in "SWS Extension Command Parameters" menu?
Skorobagatko is offline   Reply With Quote
Old 04-03-2019, 05:52 PM   #21
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Skorobagatko
Sure, just EDIT the script from the action list and change the multiplicator values:


Code:
    multiplicator_x = 1
    multiplicator_y = 3
    
    if shift == 8 then
      multiplicator_x = 5
      multiplicator_y = 10
    end
    
    if ctrl == 4 then
      multiplicator_x = 1
      multiplicator_y = 1
    end

Lowest values is 1 as it has to be integer. THis is the only limitation. Default values are on the top, then it's SHIFT, then it's CTRL. just change the multiplicator_ = kinf od line.
X-Raym is offline   Reply With Quote
Old 06-19-2022, 06:05 PM   #22
chinpou
Human being with feelings
 
Join Date: Aug 2021
Posts: 69
Default

I was really digging the screen edge scroll on a trial project! Until I tried adding enough tracks for a vertical scroll. Now, the script causes Reaper to scroll to the bottom no matter where I point my mouse cursor. When I drag the scroll bar up, it scrolls back down when I let go.

Could this be an error on mac only? Seems unlikely, given how long this script has been around!
chinpou is offline   Reply With Quote
Old 06-19-2022, 10:02 PM   #23
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@chinpou
Hi,
Not sure what is the issue. the script is arround since long time but i didnt get lotw of feedback about it, even less from mac user. I will see if I can contact someone on mac.
X-Raym is offline   Reply With Quote
Old 06-20-2022, 03:49 AM   #24
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@chinpou
sockmonkey investigated this on mac and has proposed a fix,
you can resync reapack and try


Thx !
X-Raym is offline   Reply With Quote
Old 06-20-2022, 06:33 AM   #25
chinpou
Human being with feelings
 
Join Date: Aug 2021
Posts: 69
Default

Thank you so much! I just donated.
chinpou is offline   Reply With Quote
Old 06-20-2022, 06:35 AM   #26
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@chinpou
Oh it was you ? Perfect thx !!
X-Raym is offline   Reply With Quote
Old 06-20-2022, 08:56 AM   #27
chinpou
Human being with feelings
 
Join Date: Aug 2021
Posts: 69
Default

Also fyi- the shift modifier works perfectly for speed boost, but I'm having no luck with ctrl (nor cmd) for slowing down
chinpou is offline   Reply With Quote
Old 06-20-2022, 04:46 PM   #28
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@chinpou
Can't reproduce on other Mac System
You can inspect the ctrl variable by editing the action in the native IDE (use action list for thatà and check what value it returns. to see why it mismatch with what it is expected.
X-Raym is offline   Reply With Quote
Old 09-17-2022, 09:35 AM   #29
chinpou
Human being with feelings
 
Join Date: Aug 2021
Posts: 69
Default

Howdy x-raym, me again

I'm having an issue that seems to be caused by this action.
After 10 minutes or so on average, when pressing play, I will hear sound, but my playhead disappears and the scroll on screen edge action stops functioning altogether.
I'm currently working on a dialog edit for video, but I think I've had this happen in other sessions, as well.

I really love working with this action on, otherwise!

Cheers
chinpou is offline   Reply With Quote
Old 09-17-2022, 03:55 PM   #30
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Quote:
After 10 minutes or so on average, when pressing play, I will hear sound, but my playhead disappears and the scroll on screen edge action stops functioning altogether.
Very weird. I use this action constantely since years, as other people, and never got such things or feedback... No sure what could cause this as this doesnt alter playhead at all.
I have no fix to propose :S Try not using the script and see if it works without it.
X-Raym is offline   Reply With Quote
Old 09-21-2022, 04:24 AM   #31
chinpou
Human being with feelings
 
Join Date: Aug 2021
Posts: 69
Default

No problem. I'll work with the action off for a while and see if I have the same issue!
chinpou 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 10:29 PM.


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