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

Reply
 
Thread Tools Display Modes
Old 01-30-2017, 09:00 AM   #1
divedive
Human being with feelings
 
Join Date: Feb 2012
Location: New York
Posts: 70
Default EnumRegionRenderMatrix does not work as documented (FIXED)

Just a heads up that EnumRegionRenderMatrix does not work as documented in the ReaScript documentation.
divedive is offline   Reply With Quote
Old 01-30-2017, 09:11 AM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,147
Default

Could you give an example of what you expect it to do vs what it actually does?
Justin is offline   Reply With Quote
Old 01-30-2017, 09:16 AM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 4,159
Default

It's returning every track regardless of how you've got them set in the RRM. Copy/pasted from divedive's previous thread here: http://forum.cockos.com/showthread.php?t=186892

This code:
Code:
function Msg(str)
	reaper.ShowConsoleMsg(tostring(str).."\n")
end

local __, __, num_regions = reaper.CountProjectMarkers(0)

for i = 1, num_regions do

  Msg("Region "..i)

  local cur_idx = 0
  local cur_track = 0
  while cur_track do

    cur_track = reaper.EnumRegionRenderMatrix(0, i, cur_idx)
    if not cur_track then break end
			
    local ret, track_name = 
      reaper.GetSetMediaTrackInfo_String(cur_track, "P_NAME", "", false)
		
    Msg("----"..track_name)
		
    cur_idx = cur_idx + 1
			
  end
	
end
is spitting out this:



So there's either a bug or something stupid we've overlooked.
Lokasenna is offline   Reply With Quote
Old 01-30-2017, 10:02 AM   #4
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,147
Default

Ah thanks, yes there's a bug, fixing!
Justin is offline   Reply With Quote
Old 01-30-2017, 11:50 AM   #5
divedive
Human being with feelings
 
Join Date: Feb 2012
Location: New York
Posts: 70
Default

Thanks Justin and Lokasenna!
divedive 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 01:48 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.