|
|
|
07-31-2014, 08:31 AM
|
#1
|
Human being with feelings
Join Date: Jun 2014
Posts: 38
|
EEL: "Cubase style" select tracks from item selection
Default behaviour with 'Mouse click/edit in track view changes track selection' enabled:
Track selection isn't consistent when you drag the item(s) to new tracks.
The 'empty space = select track' functionality interferes when you marquee items. This is a hindrance for me, as it requires me to do much more clicking (1 / every item) if I want the respective tracks to be selected.
Behaviour w/ the Cubase_Style_SelectTrack_On_ItemSelect.eel:
Tracks get selected whenever the items become selected, regardless if it was a marquee or a single-click.
Track selection always mirrors the item selection when it's being dragged, etc.
Deselecting an item on a track that has no selected items deselects the track.
However, deleting an item in the same instance will leave the track selected (useful if the track has 'Auto rec enable when selected' and you're recording MIDI parts/deleting them, etc). Note that this isn't reflected in the gif.
Found that Cubase's behaviour 'Track selection follows event selection' actually doesn't work this way; it will only deselect a track on item deselection if there are other items selected on other tracks. This script now functions in the same manner.
P.S. You don't have to lose the ability to select tracks in empty space if you enable 'Mouse click/edit in track view changes track selection' and use the script. They play nicely together.
Find it here: https://github.com/tritonality/ReaSt...mSelect.eel.js
Last edited by Tritone; 07-31-2014 at 09:11 AM.
|
|
|
07-31-2014, 08:43 AM
|
#2
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
This is very useful, many thanx !!
|
|
|
08-08-2014, 01:31 PM
|
#3
|
Human being with feelings
Join Date: May 2014
Posts: 160
|
how to use it?
its good, but i`m dont understantd how use it, please tell me how i can run script
i`m on windows 8 x64
Last edited by syntetic; 06-10-2015 at 08:44 AM.
|
|
|
08-08-2014, 04:20 PM
|
#4
|
Human being with feelings
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
|
Possibly take that dot-js off the end off the dot-eel filename and load it as an eel script in reascript..?
PS. Nice holiday pictures...
>
|
|
|
11-16-2014, 04:35 AM
|
#5
|
Human being with feelings
Join Date: Aug 2014
Location: New York
Posts: 135
|
Thanks a lot for this script, I've been looking for something like this for a while.
I had to modify one line to get it to work though. the original line 74 was:
Code:
while (j<=stored_total and !found)(
I had to change it to
Code:
while (j<=stored_total && !found)(
|
|
|
11-16-2014, 05:14 AM
|
#6
|
-blänk-
Join Date: Jun 2008
Posts: 11,359
|
^^ that should help syntetic as well. It's exactly the error message he's getting.
|
|
|
07-29-2015, 07:50 AM
|
#7
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Nicely done !
I made a similar script that works as an action (I needed it to use it inside some custom actions).
- X-Raym_Select only tracks of selected items.lua
It is way simpler that you propose but it answer the same need.
Download in my script pack !
|
|
|
08-05-2015, 05:07 PM
|
#8
|
Human being with feelings
Join Date: Jun 2015
Posts: 8
|
Thanks for this script, Tritone. I just found it via Google.
It solves what I thought was going to be a roadblock for me, where I couldn't rubber-band select items, then hit "S" to solo their tracks all together.
But now I can.
|
|
|
08-05-2015, 08:18 PM
|
#9
|
Human being with feelings
Join Date: Nov 2013
Location: Argentina
Posts: 326
|
Thanks Tritone!! seems useful, i want to try it, but gives me a syntax error, (besides the error spotted by Claudiohbsantos).It´s in the first line i think. I don´t know anything of eel, if anyone can spot the error, your help be gracefully accepted. In the attachments you will find a screen capture of the error screen and the editor with the code besides, for easy comparison.
__________________
Living la vida loca
|
|
|
08-06-2015, 11:35 AM
|
#10
|
Human being with feelings
Join Date: Jun 2015
Posts: 8
|
Hey Pasajeromoronmoreno - the capture is pretty low res and I can't see the error properly, but: try opening the .eel file in a text editor (notepad would do) and check that you don't have some extra characters at the start of the first line. Delete them if you see any then save it.
|
|
|
08-10-2015, 03:16 PM
|
#11
|
Human being with feelings
Join Date: Nov 2013
Location: Argentina
Posts: 326
|
Thanks @chomps!! Gonna Try and report!!
Edit: Yeah, the cap it´s pretty low res...
__________________
Living la vida loca
|
|
|
08-11-2015, 04:37 AM
|
#12
|
Human being with feelings
Join Date: Aug 2011
Posts: 178
|
Would this script and a macro allow to mimic the cubendo behavior to "show tracks with content at edit cursor"?
|
|
|
08-20-2015, 04:12 AM
|
#13
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,586
|
When only 1 track (item) is marque selected , vertical zoom doesn't work on that track, it zooms on previous selection.Can that be fixed?
|
|
|
08-27-2015, 07:58 AM
|
#14
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,586
|
bumping for some kind eel wizard to hopefully fix this
|
|
|
10-12-2015, 05:31 AM
|
#15
|
Human being with feelings
Join Date: Jan 2013
Posts: 1,126
|
I'm not very good with all this scripting thingy. Could someone walk me through, I would REALLY like to have this feature.
|
|
|
10-12-2015, 06:56 AM
|
#16
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Oops, I completly forget that I converted the script into lua for Sexan, who wanted to make mod of it, and corrected some small bugs it has.
So here is the script, from my script pack (link in my signature)
- Item Properties/tritonality_X-Raym_Cubase_Style_SelectTrack_On_ItemSelect.lua
|
|
|
10-12-2015, 07:31 AM
|
#17
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,586
|
Still working on lua port from x-raym but until then,EEL one:
https://stash.reaper.fm/manage_file/2...ItemSelect.eel
It has fixed typos so it will work out of the box.
put it into Reaper/scripts folder,Open Actions in reaper and Load scrip
|
|
|
10-13-2015, 11:07 AM
|
#18
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
Great stuff Sexan, thank you very much !
May i ask why you are working on a lua port ?
Is lua more efficient then eel ?
Should i wait for you lua version ?
|
|
|
10-14-2015, 02:35 AM
|
#19
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,586
|
This is not mine its Tritones script,I've asked X-Raym to port me to Lua so I can add some stuff and work with it because I don't know eel at all ,it looks like Japanese letters to me.
Lua and EEL script have exactly same functionality , but ATM I need to figure out how to fix one issue with Lua version.
|
|
|
04-04-2017, 03:11 PM
|
#20
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Bit of a thread necro, but whatever.
Lokasenna_Track selection follows item selection.lua
Sexan asked me to have a look at fixing the Lua version of this script and I ended up just rewriting it. As far as I can tell it works correctly, and as a bonus it scrolls the mixer view to the first selected track.
Should be up on ReaPack in a few minutes.
|
|
|
04-04-2017, 03:21 PM
|
#21
|
Human being with feelings
Join Date: Jan 2013
Posts: 1,126
|
Can you tell me why it would be better than this other version?
|
|
|
04-04-2017, 03:34 PM
|
#22
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
The other Lua one has a couple of bugs - for one, you can't change the track selection yourself while it's running.
Compared to the EEL version... aside from scrolling the mixer view, I don't know that there are any notable differences. The user who wrote it left the forums ages ago, and his code is too difficult to fix/maintain. This version is MUCH simpler.
|
|
|
04-04-2017, 06:45 PM
|
#23
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Quote:
Originally Posted by Lokasenna
Bit of a thread necro, but whatever.
Lokasenna_Track selection follows item selection.lua
Sexan asked me to have a look at fixing the Lua version of this script and I ended up just rewriting it. As far as I can tell it works correctly, and as a bonus it scrolls the mixer view to the first selected track.
Should be up on ReaPack in a few minutes.
|
curious but don't see it show up in reapack yet
|
|
|
04-04-2017, 06:48 PM
|
#24
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Synchronize packages? I'm seeing it on mine.
|
|
|
12-17-2017, 11:15 AM
|
#25
|
Human being with feelings
Join Date: Dec 2016
Posts: 876
|
Slow track selection with large template bug
It seems like when there is a large number of tracks in the session this script gets slowed down exponentially.
It seems like the script is cycle/refresh through the tracks selection at a very slow rate when using the marquee tool. Is there a way to update the script so that it just adds tracks to the selection instead of recycling through all the tracks in the session to select the new track?
I can send a video and/or my template if you need to take a look at where the problem is.
|
|
|
02-23-2018, 07:20 PM
|
#26
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
Thanks for this.
Could you just add to the script to run only at a ProjectState change? This could also improve the issue from the previous post.
And also PrevetUIRefresh would be nice with a action on/off toggle for a toolbar button.
Last edited by bFooz; 02-23-2018 at 07:28 PM.
|
|
|
02-24-2018, 08:03 AM
|
#27
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
Or maybe not on project state change, maybe better would be to have it run on a time step, e.g. run each 100 ms.
When it runs on project state chenge, it does not work well with my script for track selection and I guess there would be also issues with some another scripts.
|
|
|
02-27-2018, 07:54 PM
|
#28
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Ok Loka got it ...thanks
|
|
|
03-14-2018, 12:04 PM
|
#29
|
Human being with feelings
Join Date: Jun 2015
Posts: 685
|
Thanks Lokasenna for the script.
Not sure if considered a bug, but it deselects all tracks if you deselect all items by clicking on an empty area of a track.
Normally this unselects all except the clicked track, if you have the corresponding preference enabled (Mouse click/edit in track view changes track selection).
Well, maybe it's better like that? have to try and get used to it if the script proves useful in my workflow
PS. a small detail, but it looks a bit glitchy, because it selects the clicked-on track on mousebutton down, and immediately unselects it on mousebutton up.
Last edited by Sju; 03-14-2018 at 12:12 PM.
|
|
|
12-28-2018, 02:42 AM
|
#30
|
Human being with feelings
Join Date: Jul 2014
Location: Turkey
Posts: 233
|
Hi, I tried lokasenna's and x-raym's link track and item selection script but I want some other things. If someone can help I'll be very glad. The first is; when I click a track with no items, it doesn't select that empty track it would be nice to select it. The second is; lets say I have two track and one of them has an item on it and the other is empty. When I drag that item to the empty track, I want it to select that track at the same time. By the way my mixer docked left on the main window so I want it to see my newly selected track here too (docked mixer shows one track only, it should be scrolled to new selected track). The main reason I want this features is I want to put Mouse click/edit in track view changes track selection option to my toolbar so I can enable/disable it with a single mouse click. (but it's not possible to put it to toolbar) Thank you.
|
|
|
12-11-2019, 02:04 PM
|
#31
|
Human being with feelings
Join Date: Nov 2019
Posts: 225
|
Quote:
Originally Posted by Lokasenna
Synchronize packages? I'm seeing it on mine.
|
Hey Lokasenna, tried your script and everything works well, but one thing:
Is it possible simple/copy paste does not work anymore when when your script is loaded?
That happens when the script is loaded here (tried it on multiple reaper 6.01 installations):
https://forum.cockos.com/showthread....83#post2215383
|
|
|
12-11-2019, 02:13 PM
|
#32
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Responded in the other thread.
|
|
|
04-15-2020, 06:33 PM
|
#33
|
Human being with feelings
Join Date: Aug 2019
Posts: 853
|
Lokasenna_Track selection follows item selection.lua
Hi Adam,
Thank you for this excellent script. Unfortunately I believe it may have an underlying bug that is a bit of a killer - this bug causes all multi-take items on multiple (maybe all) tracks to change takes. It has only happened maybe 5 times in the last year since I've been using this script, and today I noticed it happened again. I rolled back through the item history and found the point at which it happened. There were two adjacent actions in the undo history list, both called 'set first selected track as last touched track'. When I toggled between these two undo points, I could see the item takes changing.
There is of course a chance that it has nothing to do with your script at all, but the fact that's it's not a generally reported issue (that I could find anyway) makes me think it's not a stock Reaper bug, and this script of yours is the one of a very few I have constantly running, and the only one that relates to item/track selection, so I figured it might be the cause.
If you (or anyone else here) has any idea what could be causing this, and if it can be fixed, then I'd be more than happy to donate.
Thanks.
|
|
|
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:48 AM.
|