Old 04-09-2020, 06:31 AM   #1
tdc
Human being with feelings
 
Join Date: Oct 2019
Location: Sydney
Posts: 336
Default Action to Recall FX User Default

Hi Folks, I am wanting to be able to recall the User Default on any plugin via an Action but have not been able to find any way to do so. There appear to be a number of SWS scripts to load next and previous Presets, but none that can load the default.

Any ideas? Thanks,
tdc is offline   Reply With Quote
Old 04-10-2020, 05:19 AM   #2
tdc
Human being with feelings
 
Join Date: Oct 2019
Location: Sydney
Posts: 336
Default

As an update and solution, I found a ReaPack script that I could use to learn my first bit of ReaScript hacking.

Thanks to me2beats for their script.

Attaching code below for future folks looking for something similar. (Just change the name of your desired Preset.)

Code:
-- @description Set preset
-- @version 1.0
-- @author me2beats

function nothing()
end

  retval, trnum, _, fxnum = reaper.GetFocusedFX()
  if retval == 1 then
  
    script_title = 'Recall Default Preset'
   reaper.Undo_BeginBlock()
  
    tr = reaper.GetTrack(0,trnum-1) 
    preset = "TDC: Default" 
    reaper.TrackFX_SetPreset(tr, fxnum, preset)
    
   reaper.Undo_EndBlock(script_title, -1)
  end
tdc 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 09:47 AM.


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