Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REAPER 7 - me2beats_Toggle solo track under mouse.lua not take care of track spacer #2

Open
MathieuCGit opened this issue Nov 28, 2023 · 1 comment

Comments

@MathieuCGit
Copy link

Hello,

I just want to mention that the script "me2beats_Toggle solo track under mouse.lua" do not take care of new track spacer in Reaper 7 and, if you have lots of track, it do not solo the right track as the mouse doesn't take the right coordinate in consideration.

So regarding the script, it seems it's related to "reaper.BR_TrackAtMouseCursor()" SWS function which is probably buggy and does not take care of spacer, but I'd like to let you know this issue as it may affects lots of other script you provide.

regards

@MathieuCGit
Copy link
Author

MathieuCGit commented Nov 28, 2023

I also tried "me2beats_Toggle mute track under mouse.lua" with the same result.

Actually I use a workaround I quickly coded :

_, segment, _ = reaper.BR_GetMouseCursorContext()
	
	reaper.Main_OnCommand( 41110, 0 ) --Track: Select track under mouse
	track=reaper.GetSelectedTrack( 0, 0 )
	
	if segment == "track" then
		if reaper.GetMediaTrackInfo_Value(track, 'I_SOLO') == 0 then
			reaper.SetMediaTrackInfo_Value(track, 'I_SOLO', 2)
		else
			reaper.SetMediaTrackInfo_Value(track, 'I_SOLO', 0)
		end
	end

Not ideal I know, because it looses track(s) selection but it works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant