02-01-2017, 05:45 AM | #1 |
Human being with feelings
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
|
GetFocusedFX - itnum, fxnum.. takenum ??
Today I wanted to finish my script Toggle bypass focused fx. It works for track fx but doesn't work with FX on items.
And I wanted to finish it and I started to write a code like this Code:
retval, trnum, itnum, fxnum = r.GetFocusedFX() if retval == 1 then -- track FX is focused tr = r.GetTrack(0,trnum-1) en = r.TrackFX_GetEnabled(tr, fxnum) r.TrackFX_SetEnabled(tr, fxnum, not en) elseif retval == 2 then -- item FX is focused tr = r.GetTrack(0,trnum-1) item = r.GetTrackMediaItem( tr, itnum-1) I need to get the take right now and then use TakeFX_GetEnabled(take, fx) but GetFocusedFX() doesn't return neither take nor take number what the freak? Of course I can try track or item chunks but maybe there's a better way. |
02-05-2017, 02:43 PM | #2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Got it, extending this API for 5.34pre1, it will include the take number as the high 16 bits of fxnum.
|
02-05-2017, 05:52 PM | #3 |
Human being with feelings
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
|
|
03-02-2017, 03:32 AM | #4 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,680
|
Did this happen?
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
03-02-2017, 08:48 PM | #5 |
Human being with feelings
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
|
|
03-04-2017, 01:48 PM | #6 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,680
|
The help file has not been updated to reflect the change.
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
03-04-2017, 01:57 PM | #7 |
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 5,265
|
The ReaScript documentation on reaper.fm has not been updated since v5.0. Use the one generated by your local REAPER installation via the action ReaScript: Open ReaScript documentation (html) (also in the default Help menu) instead. It's always up to date and it also includes documentation for functions added by currently loaded extensions (such as SWS). X-Raym also made a prettier and searchable version of the docs here which he updates frequently.
__________________
🎁 Donate (PayPal) | Sponsor (GitHub) | The Endless Journey (Keyboard Ensemble) ReaPack, a package manager for REAPER | SWS 2.14 is now available in ReaPack [new!] Developer tools: Lua profiler | Interactive ReaScript | ReaPack Editor | ReaImGui Last edited by cfillion; 03-04-2017 at 02:08 PM. |
03-04-2017, 03:26 PM | #8 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,680
|
If I am not mistaken, both these sources are not updated regarding this function
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
03-04-2017, 03:51 PM | #9 | |
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Both the Help menu documentation and X-Raym's page mention it:
Quote:
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
03-04-2017, 04:15 PM | #10 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,680
|
Ooops... My mistake! :S... So, how can I get this info from fxnumber in eel?
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
07-26-2017, 08:16 AM | #11 |
Human being with feelings
Join Date: Apr 2011
Posts: 3,680
|
Could GetFocusedFX be updated once more so that it worked with the input FX chain too? Thanks!
__________________
Most of my scripts can be found in ReaPack. If you find them useful, a donation would be greatly appreciated! Thank you! :) |
Thread Tools | |
Display Modes | |
|
|