ULT_SetMediaItemNote not working in Lua #702

Closed
matthewjumpsoffbuildings opened this Issue Feb 19, 2015 · 2 comments

Projects

None yet

2 participants

@matthewjumpsoffbuildings

im using Lua, SWS 2.6.1 with Reaper 5 pre 13. I have also tested this with 5 pre 12, running SWS 2.6.1 and 2.6.2

If i create a new item with reaper.AddMediaItemToTrack() then attempt to run ULT_SetMediaItemNote() on it, nothing seems to happen, no notes are added.

@matthewjumpsoffbuildings

just did a simple test

item = reaper.GetSelectedMediaItem(0, 0)

reaper.ULT_SetMediaItemNote(item, "test")

ran it on a single selected empty item, did nothing. is this function broken in Lua?

GetMediaItemNote works. and also if you do a Set on an item that has notes, instead of just failing and leaving the original notes, it deletes all notes. but it doesnt trigger a UI refresh, so you have to zoom/scroll to see it

@matthewjumpsoffbuildings matthewjumpsoffbuildings changed the title from ULT_SetMediaItemNote not working on newly ReaScript created item to ULT_SetMediaItemNote not working in Lua Feb 21, 2015
@Jeff0S
Collaborator
Jeff0S commented Mar 18, 2015

Fixed for the next pre-release, thanks for the report.
Note about refresh: your script has to take care of it with UpdateArrange()

@Jeff0S Jeff0S closed this Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment