Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-09-2018, 01:25 AM   #1
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
Default Playback not updating in FIPM when using script (FIXED)

When using script to mute/unmute items playback in FIPM does not update,it playbacks the item which was first selected, others are ignored. It will only playback new unmuted items if playback cursor position is manually changed


Short script to reproduce bug
Code:
function main()
  local cur_item, _ = reaper.BR_ItemAtMouseCursor()
  local num_items = reaper.CountTrackMediaItems(reaper.GetSelectedTrack(0,0))
    for i = 0 , num_items-1 do
      local item = reaper.GetMediaItem(0, i)
        if item ~= cur_item then
          reaper.SetMediaItemInfo_Value( item, "B_MUTE", 1 )
        else
          reaper.SetMediaItemInfo_Value( item, "B_MUTE", 0 )
        end 
    end 
reaper.UpdateArrange()              
reaper.defer(main)
end
main()
Sexan is offline   Reply With Quote
 

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 02:40 AM.


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