Old 04-16-2019, 11:43 AM   #1
CMinusInGym
Human being with feelings
 
Join Date: Dec 2010
Posts: 17
Default ReaScript to Add Take FX to Active Item no longer working

I've been using a script based off this video here: https://www.youtube.com/watch?v=DRAx36MGtwA which adds a take effect to the selected take. This worked for months, but is no longer working after switching from Waves Tune to Melodyne. After switching back to original code, Waves tune no longer opens. Did something change in the API or am I missing something obvious? Code below.
Thank you!


item = reaper.GetSelectedMediaItem (0,0)

MediaItem_Take = reaper.GetActiveTake (item, 0)

reaper.TakeFX_AddByName (MediaItem_Take, "VST3: Melodyne (Celemony)", 1)

reaper.TakeFX_Show (MediaItem_Take, 0, 1)
CMinusInGym is offline   Reply With Quote
Old 04-16-2019, 04:59 PM   #2
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 656
Default

Try this.
Just change the name='' variable.
This will insert Melodyne

Code:
name='Melodyne'
count_sel_items = reaper.CountSelectedMediaItems(0)
if count_sel_items ~= nil then end
for i = 1, count_sel_items do
  item = reaper.GetSelectedMediaItem(0, i-1);
  take = reaper.GetMediaItemTake(item, 0)
  local fxId = reaper.TakeFX_AddByName(take, name,  0 )
  if fxId <0 then
    fxId  = reaper.TakeFX_AddByName( take, name,  1 )
    reaper.TakeFX_Show (take, 0, 1)
  end
end
J Reverb 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 03:16 PM.


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