MapFocusedFXToWidgets - malcolmgroves/reaper_csi GitHub Wiki

As an alternative to MapSelectedTrackFXToWidgets you may want to be a little more selective in which FX Zones get activated and when. In this case, we can activate only the FX Zone for the currently active FX window, using MapFocusedFXToWidgets.

To enable this, we need to do two things:

1. Make sure you're using the FocusedFXNavigator inside your FX Zone

Remember the second line in our ReaEQ.zon file?:

Zone "VST: ReaEQ (Cockos)" ReaEQ 
    FocusedFXNavigator
    RotaryG11 FXParam 0 "Freq-Band 1"
    Fader1 FXParam 1 "Gain-Band 1"
    ...

It currently says FocusedFXNavigator. This is what we want, not SelectedTrackNavigator.

2. Map the MapFocusedFXToWidgets action to a widget

To actually activate the FX Zone, we need to bind the MapFocusedFXToWidgets action to a widget.

For example, this could be a button, as this example shows:

Zone Home 
        ...
	Plugin MapFocusedFXToWidgets
        ...
ZoneEnd

Another alternative would be to use one of our Virtual Widgets, namely, OnFXFocus, which would mean that whenever an FX window received focus in Reaper, if it had a corresponding FX Zone defined, it would be activated. (assuming of course they had been defined with the FocusedFXNavigator as above)

Notes:

  • In the beta version of CSI, OnFXFocus has a few issues. For example, sometimes it doesn't fire for the first FX in a chain. Switching away to another FX window and then back again usually fixes this.
  • Like MapSelectedTrackFXToWidgets, remember to give yourself a way back to your Home Zone. A widget somewhere mapped to GoZone Home will let you exit the FX Zone when you're done and get back to controlling the rest of Reaper.