|
|
|
04-06-2020, 11:17 PM
|
#1
|
Human being with feelings
Join Date: May 2016
Posts: 132
|
Item Name In Tool Tip
In reaper I can Hover over the track name and get a tool tip with the track name. If the track name is longer than the field displays, the tool tip will show me the entire name.
I don't think this can this be done with item names?
When I shrink the track size to show all items the item names disappear and this is when I would like an action to show the full item name in a tool tip on mouse over.
Would anyone else like this feature.
Thanks
|
|
|
04-07-2020, 05:59 AM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
You could try this script:
Code:
-- Show Item-Take-Name as tooltip, when mouse hovering above an item-take
-- Meo Mespotine, 7th of April 2020 - licensed under MIT-license
function main()
X,Y=reaper.GetMousePosition()
MediaItem, MediaItem_Take = reaper.GetItemFromPoint(X, Y, true)
A=reaper.GetTooltipWindow()
retval, A2 = reaper.BR_Win32_GetWindowText(A)
if MediaItem_Take~=nil and (OldTake==nil or A2=="") then
PCM_Source=reaper.GetMediaItemTake_Source(MediaItem_Take)
filenamebuf = reaper.GetMediaSourceFileName(PCM_Source, "")
reaper.TrackCtl_SetToolTip(filenamebuf, X-20, Y+30, false)
end
OldTake=MediaItem_Take
reaper.defer(main)
end
main()
Needs current version of SWS installed.
Last edited by Meo-Ada Mespotine; 04-07-2020 at 06:07 AM.
|
|
|
04-11-2020, 03:43 AM
|
#3
|
Human being with feelings
Join Date: Sep 2019
Posts: 175
|
Quote:
Originally Posted by mespotine
You could try this script:
Code:
-- Show Item-Take-Name as tooltip, when mouse hovering above an item-take
-- Meo Mespotine, 7th of April 2020 - licensed under MIT-license
function main()
X,Y=reaper.GetMousePosition()
MediaItem, MediaItem_Take = reaper.GetItemFromPoint(X, Y, true)
A=reaper.GetTooltipWindow()
retval, A2 = reaper.BR_Win32_GetWindowText(A)
if MediaItem_Take~=nil and (OldTake==nil or A2=="") then
PCM_Source=reaper.GetMediaItemTake_Source(MediaItem_Take)
filenamebuf = reaper.GetMediaSourceFileName(PCM_Source, "")
reaper.TrackCtl_SetToolTip(filenamebuf, X-20, Y+30, false)
end
OldTake=MediaItem_Take
reaper.defer(main)
end
main()
Needs current version of SWS installed.
|
Cool stuff! Thanks man. I might need to change a few things since the name is too long because the full source is also included.
|
|
|
04-11-2020, 08:13 AM
|
#4
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Glad that I could help, but please don't use man with me, as mentioned in my signature.
Btw, I could modify it to just show the file, omitting the path so it's shorter.
I wasn't sure what would be more helpful.
|
|
|
02-27-2021, 11:07 AM
|
#5
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,630
|
+1
This should be built into Reaper imo
|
|
|
08-21-2021, 08:08 PM
|
#6
|
Human being with feelings
Join Date: May 2016
Posts: 132
|
Is this a Reascript, lua, eel or python.
.
Its been a while. I've just checked back and can't recall why I didn't ask how to implement this script. Felt a bit ignorant probably. Feel worse now for not asking the question and not offering a "thank you"
How do I add this script to the actions menu and what is the suffix, eel, lua, python, or reascript?
Does the tooltip script float?
.
|
|
|
03-21-2023, 06:56 AM
|
#7
|
Human being with feelings
Join Date: Nov 2022
Posts: 8
|
Quote:
Originally Posted by Meo-Ada Mespotine
Glad that I could help, but please don't use man with me, as mentioned in my signature.
Btw, I could modify it to just show the file, omitting the path so it's shorter.
I wasn't sure what would be more helpful.
|
Thank you for the script! May I know is it okay if you can help to omitting the path? I would like to try if I can mouse over on the item and just see the item file name. Really appreicate you sharing your knowledge and help people.
Thanks girl. =)
|
|
|
10-21-2023, 01:17 PM
|
#8
|
Human being with feelings
Join Date: May 2020
Posts: 337
|
Quote:
Originally Posted by Meo-Ada Mespotine
You could try this script:
Code:
-- Show Item-Take-Name as tooltip, when mouse hovering above an item-take
-- Meo Mespotine, 7th of April 2020 - licensed under MIT-license
function main()
X,Y=reaper.GetMousePosition()
MediaItem, MediaItem_Take = reaper.GetItemFromPoint(X, Y, true)
A=reaper.GetTooltipWindow()
retval, A2 = reaper.BR_Win32_GetWindowText(A)
if MediaItem_Take~=nil and (OldTake==nil or A2=="") then
PCM_Source=reaper.GetMediaItemTake_Source(MediaItem_Take)
filenamebuf = reaper.GetMediaSourceFileName(PCM_Source, "")
reaper.TrackCtl_SetToolTip(filenamebuf, X-20, Y+30, false)
end
OldTake=MediaItem_Take
reaper.defer(main)
end
main()
Needs current version of SWS installed.
|
Would it be possible to make a version of this script that displays the item's take name instead of the media source file so that it works with MIDI items?
|
|
|
10-22-2023, 03:12 AM
|
#9
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
|
|
|
10-22-2023, 04:13 AM
|
#10
|
Human being with feelings
Join Date: May 2020
Posts: 337
|
Quote:
Originally Posted by Meo-Ada Mespotine
|
Thanks. I've just installed it from reapack and run it but I can't see the tooltips appear. Your media filename script worked fine for me, is this one designed to work in the same way (item name appears when hovering over it in arrange view)?
|
|
|
10-22-2023, 04:16 AM
|
#11
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Yes, just hover with the mouse over the item.
|
|
|
10-23-2023, 01:40 AM
|
#12
|
Human being with feelings
Join Date: May 2020
Posts: 337
|
Unfortunately this isn't working for me. I'm assuming it's supposed to show the MIDI take name?
I don't have any other scripts running and tried it with an existing project and then a new/blank project (create new track, renamed track, new midi item, hovered mouse over item).
Please let me know if there's anything obvious I might be missing or if it'd be useful for me to provide any more info for a possible bug/issue.
|
|
|
10-23-2023, 07:16 AM
|
#13
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
What happens instead?
Does it work on regular items, non-midi ones?
Which operating system and which exact Reaper version did you try?
Oh, and since it's off topic here, let's move the discussion into my thread:
https://forum.cockos.com/showthread.php?t=282924
|
|
|
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:45 AM.
|