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

Reply
 
Thread Tools Display Modes
Old 08-09-2018, 01:25 AM   #1
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,588
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
Old 08-15-2018, 11:54 AM   #2
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,588
Default

Any update on this? is it a bug or user error?
Sexan is offline   Reply With Quote
Old 10-07-2018, 04:37 AM   #3
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,588
Default

I want to bump this since its breaking script functionality
Sexan is offline   Reply With Quote
Old 10-08-2018, 02:50 PM   #4
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Fixing, thanks!

As a temporary workaround, you can call this after changing the mute state:
Code:
reaper.SetMediaItemInfo_Value(item, "D_POSITION", reaper.GetMediaItemInfo_Value(item,"D_POSITION"));

Last edited by Justin; 10-08-2018 at 03:11 PM.
Justin is offline   Reply With Quote
Old 10-08-2018, 11:30 PM   #5
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,588
Default

thank you!
Sexan is offline   Reply With Quote
Old 10-09-2018, 02:16 AM   #6
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Sorry, for my ignorance, but what is FIPM?
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 10-09-2018, 02:23 AM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Free Item Positioning Mode. It's a track setting that allows items to be resized and moved vertically.
cfillion is offline   Reply With Quote
Old 10-09-2018, 02:47 AM   #8
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Ahhh, thanks Christian! Wasn't aware of the abbreviation
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   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 05:29 AM.


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