Old 05-08-2016, 04:57 PM   #1
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default SNM_MoveOrRemoveTrackFX doesn't move FXID

What am I doing wrong? or is it a bug in the API?

Code:
selectedtrack = reaper.GetSelectedTrack(0,0)
FXID = reaper.TrackFX_GetFXGUID(selectedtrack, 0)
reaper.ShowConsoleMsg("\nFXID of FX 0 before moving = " .. FXID)
reaper.SNM_MoveOrRemoveTrackFX(selectedtrack, 0, 1) 
FXID = reaper.TrackFX_GetFXGUID(selectedtrack, 0)
reaper.ShowConsoleMsg("\nFXID of FX 0 after moving = " .. FXID)
REAPER 5.18, x64 win7, SWS 2.8.7
Run this lua code in a selected track with some FX in the chain
Symptom: Moving FX with the function SNM_MoveOrRemoveTrackFX doesn't move the FXID. After moving the effect down, the FXID of the same FX number, doesn't change. If you save and open the RPP file you can also see that everything changes correctly but FXID remains unmoved.
see gif:
heda is offline   Reply With Quote
Old 05-08-2016, 06:16 PM   #2
Garrick
Human being with feelings
 
Garrick's Avatar
 
Join Date: Jul 2009
Location: Wellington
Posts: 4,531
Default

As you well know, I'm the newby so, grain of salt....

The first message to console gives a value, but the second gives a can't concatenate a nil value error.

I'm confused, I can't find this any where in the API list
reaper.SNM_MoveOrRemoveTrackFX

is this one of those toString things?



I'll get me hat, i'm sure I am out of my depth here

edit: ahh you are calling a sws function.
please continue

Last edited by Garrick; 05-08-2016 at 06:30 PM.
Garrick is offline   Reply With Quote
Old 06-30-2016, 03:50 AM   #3
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default

no replies about the bug. Probably because it is SWS related.
maybe it is not a bug or I am missing something...But I'll try to make my own function in Lua to move the chunks manually and see if it works. Then I can make it better by moving the FX by more than 1 position at once too.
heda 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:07 AM.


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