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: 12,096
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
Location: Black Forest
Posts: 5,054
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
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 03-22-2019, 08:04 PM   #3
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
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: 12,096
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: 12,096
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: 15,721
Default

thanks, fixing!
Justin is offline   Reply With Quote
Old 08-13-2019, 03:31 PM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
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
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada 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 08:37 AM.


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