|
|
|
01-17-2019, 10:32 AM
|
#1
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Tooltip to show item name?
When having a lot of tracks at a very small size, a project can get very confusing and item names are hidden. Is there a way to show the name of a hovered item as tooltip?
|
|
|
01-17-2019, 04:34 PM
|
#2
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Be surprised if someone hasn't done it already, but here's a quick try at it,..
EDIT GetActiveTake is probably wrong, I was only testing with single take items.
Code:
local counter = 0
function Main()
if counter >= 10 then
counter = 0
local window, segment, details = reaper.BR_GetMouseCursorContext()
if details == "item" then
local item = reaper.BR_GetMouseCursorContext_Item()
if item then
local take = reaper.GetActiveTake(item)
local _, name = reaper.GetSetMediaItemTakeInfo_String(take, "P_NAME", "", false)
local x,y = reaper.GetMousePosition()
reaper.TrackCtl_SetToolTip(name, x+8, y-8, true)
end
else
reaper.TrackCtl_SetToolTip("",0,0,false)
end
end
counter = counter + 1
reaper.defer(Main)
end
Main()
Last edited by Edgemeal; 01-17-2019 at 04:42 PM.
|
|
|
01-17-2019, 06:17 PM
|
#3
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Completely forgot about the tooltip function, thanks Edgemeal!
Now, if we only could have this natively (a delayed tooltip, showing the position and goes away when clicking).
Not a huge fan of defer functions. I mean, I'm glad we have them. But I experienced strange and unpredictable things with them on heavy projects and / or if you stack too many of them.
|
|
|
01-18-2019, 12:58 AM
|
#4
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
+1 for native everything!
I don't run any defer loop scripts, except one I recently made but only used when in stop mode anyway, but ya its nice to have.
Coding scripts has become addictive, lately if I'm not coding in VS I'm coding in ReaScript.
|
|
|
01-18-2019, 06:45 PM
|
#5
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
I hear ya! I wish I could continue to finish some of my scripts. But work calls, so I need to make a temporary break.
|
|
|
01-18-2019, 07:23 PM
|
#6
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
Quote:
Originally Posted by _Stevie_
When having a lot of tracks at a very small size, a project can get very confusing and item names are hidden. Is there a way to show the name of a hovered item as tooltip?
|
Hm, yeah, I agree with that, but never really looked into it until now. It looks like you can set the little area below the TCP to show "selected track/item/envelope details" (Right click menu there). Apparently, it shows the name of the last one that was left clicked (including Modifier+Click) ...
|
|
|
01-18-2019, 07:31 PM
|
#7
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Yeah, that's pretty cool, never noticed.
But the font is so small, it's barely readable on my monitor, plus you have to
look down all the time. A tooltip would make things definitely easier.
The funny thing, it's already there... When you hover that lower area, after some time a tooltip appears. Exactly the one, that should appear next to the mouse cursor
|
|
|
01-18-2019, 07:48 PM
|
#8
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
I'm not 100% sure that an item hover tooltip would not get in my way. Maybe it would be ok, or nice. (It looks like, judging by Preferences/Apppearances page, that they *may* have put some consideration of that into their decisions already)
But I HAVE, for as long as I can remember, had the editing tooltip enabled, and it has never bothered me. It seems that, if item name is not showing because item is too small, the editing tooltip could show the name as well, at least.
|
|
|
01-18-2019, 08:07 PM
|
#9
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Yeah, I cannot say if it will annoy me either. But I don't see any other way to get a grip of which item I'm just hovering :P
|
|
|
12-21-2020, 10:07 AM
|
#10
|
Human being with feelings
Join Date: Mar 2014
Posts: 347
|
Thanks Edgemeal...so where does this script go exactly so that it runs all the time?
Last edited by DarrenH; 12-21-2020 at 10:18 AM.
|
|
|
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 06:46 AM.
|