Old 11-14-2019, 01:48 PM   #1
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default CF_GetTrackFXChain not working with named track (FIXED)

EDIT a new SWS build fixes this.
The fix should be included in SWS v2.11.



Reproduce bug...
New project,
Add 1 track,
Add fx to track, show the fx chain, run the script below. Result is OK!

Now give track a name, run script, result = fx chain not found!

test code,
Code:
function Msg(str)
  reaper.ShowConsoleMsg(tostring(str) .. '\n')
end

function Main()
  local track = reaper.CSurf_TrackFromID(1, false)
  if not track then reaper.MB('Track 1 NOT found!', 'Error',0) return end
  
  local fxChain = reaper.CF_GetTrackFXChain(track) 
  if not fxChain then
    -- try CF_GetFocusedFXChain 
    fxChain = reaper.CF_GetFocusedFXChain() 
    if not fxChain then reaper.MB('Unable to get track FX Chain window!', 'Error',0) return end
  end
  Msg(fxChain)
end

Main()
Windows 10 x64 (1909), REAPER v5.985/x64, SWS v2.10.0.1

Last edited by Edgemeal; 12-09-2019 at 08:06 AM.
Edgemeal 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:22 AM.


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