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

Reply
 
Thread Tools Display Modes
Old 02-25-2019, 08:20 AM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,977
Default API: SetTrackStateChunk() - FX settings not replaced if 'Avoid loading undo.. (FIXED)

FIXED (v5.981+dev0813a)

API: SetTrackStateChunk() - FX settings not replaced if 'Avoid loading undo states when possible' enabled

This issue came up with SWS Resources / Track templates here.

cfillion could confirm also with ReaEQ:

Code:
t = reaper.GetTrack(0, 0)
_, c = reaper.GetTrackStateChunk(t, '')

-- (reset or tweak the effect before the next line)

reaper.SetTrackStateChunk(t, c)

-- result: effect settings are not replaced if "Avoid loading undo states when possible" is enabled
-- unless the effect is set offline first

reaper.TrackFX_SetOffline(t, 0, true)
reaper.SetTrackStateChunk(t, c) -- works now
(If this turns out to be not a bug / live with it we could probably use the TrackFX_SetOffline() workaround in SWS.)

Last edited by nofish; 08-14-2019 at 01:45 PM.
nofish is offline   Reply With Quote
Old 02-27-2019, 05:10 PM   #2
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 2,650
Default

Oh yes, a fix would be awesome, since I'm using this on a daily basis!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 03-22-2019, 08:04 PM   #3
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 391
Default

Looks like the workaround is being baked in to SWS, do I read that correct?

I'm guessing to get that feature I'd need to either wait for the next SWS update, or figure out how to build it from source?

Good to know about it, regardless....
__________________
eric moon
Very Stable Genius
https://gogolab.com/
woodslanding is offline   Reply With Quote
Old 03-23-2019, 08:46 AM   #4
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,977
Default

Yes, a workaround for this is added for next SWS version.
I'd still appreciate if this rather be fixed in Reaper because the workaround I came up with is quite clumsy.

Anyway, if you're on Win x64 here's a test version containing the workaround:
https://github.com/reaper-oss/sws/is...ment-468933388
nofish is offline   Reply With Quote
Old 08-10-2019, 01:51 AM   #5
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,977
Default

bump

I'd be happy if this maybe could be handled / fixed in Reaper so I could remove my workaround for SWS. (which I'm not happy with at all as it's clumsy and slow )
nofish is offline   Reply With Quote
Old 08-13-2019, 01:19 PM   #6
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,396
Default

thanks, fixing!
Justin is online now   Reply With Quote
Old 08-13-2019, 03:31 PM   #7
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,490
Default

@Justin

Whily you're at it, could you have a look at this problem with SetTrackStateChunk as well?

https://forum.cockos.com/showthread.php?t=222699
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine 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:39 PM.


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