Old 04-06-2020, 11:17 PM   #1
dreaminglife
Human being with feelings
 
Join Date: May 2016
Posts: 132
Default 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
dreaminglife is offline   Reply With Quote
Old 04-07-2020, 05:59 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

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.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 04-07-2020 at 06:07 AM.
Meo-Ada Mespotine is online now   Reply With Quote
Old 04-11-2020, 03:43 AM   #3
Chimpscookie
Human being with feelings
 
Join Date: Sep 2019
Posts: 175
Default

Quote:
Originally Posted by mespotine View Post
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.
Chimpscookie is offline   Reply With Quote
Old 04-11-2020, 08:13 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

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.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 02-27-2021, 11:07 AM   #5
MonkeyBars
Human being with feelings
 
MonkeyBars's Avatar
 
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,630
Default

+1

This should be built into Reaper imo
MonkeyBars is offline   Reply With Quote
Old 08-21-2021, 08:08 PM   #6
dreaminglife
Human being with feelings
 
Join Date: May 2016
Posts: 132
Default 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?
.
dreaminglife is offline   Reply With Quote
Old 03-21-2023, 06:56 AM   #7
ViviZzz
Human being with feelings
 
Join Date: Nov 2022
Posts: 8
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
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. =)
ViviZzz is offline   Reply With Quote
Old 10-21-2023, 01:17 PM   #8
robotron
Human being with feelings
 
Join Date: May 2020
Posts: 337
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
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?
robotron is offline   Reply With Quote
Old 10-22-2023, 03:12 AM   #9
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I already did on my ReaPack:

https://forum.cockos.com/showthread....potine+scripts
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-22-2023, 04:13 AM   #10
robotron
Human being with feelings
 
Join Date: May 2020
Posts: 337
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
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)?
robotron is offline   Reply With Quote
Old 10-22-2023, 04:16 AM   #11
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Yes, just hover with the mouse over the item.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-23-2023, 01:40 AM   #12
robotron
Human being with feelings
 
Join Date: May 2020
Posts: 337
Default

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.
robotron is offline   Reply With Quote
Old 10-23-2023, 07:16 AM   #13
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

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
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   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 04:45 AM.


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