View Single Post
Old 04-16-2019, 03:30 PM   #10
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
Default

Well now that code is a lot simpler than parsing the track chunk!

As for the timing difference....good to know....

Although with multiple tracks I imagine the loading time of the new fx will dwarf the time required to delete the old ones....

EDIT: Well, this isn't working for me. The old fx are deleting, but the new ones aren't showing up. I used the same code to set the path that I used for the track chunk code, which loaded fine:

Code:
    local path =  reaper.GetResourcePath()..'\\FXChains\\'..chainname..'.RfxChain'
    --also doesn't work:
    local path = 'FXChains\\'..chainname..'.RfxChain'
    --you had a forward slash???  Well, this doesn't work either:
    local path = 'FXChains/'..chainname..'.RfxChain'
You did verify this works with a .RfxChain file? Wonder what I've got wrong...
__________________
eric moon
Very Stable Genius
https://gogolab.com/

Last edited by woodslanding; 04-16-2019 at 05:04 PM.
woodslanding is offline   Reply With Quote